[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23001] branches/blender2.5/blender/source /gameengine/GamePlayer/ghost/GPG_ghost.cpp: Added sound device default settings for the gameplayer.
Joerg Mueller
nexyon at gmail.com
Fri Sep 4 22:15:01 CEST 2009
Revision: 23001
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23001
Author: nexyon
Date: 2009-09-04 22:14:59 +0200 (Fri, 04 Sep 2009)
Log Message:
-----------
Added sound device default settings for the gameplayer.
Modified Paths:
--------------
branches/blender2.5/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
Modified: branches/blender2.5/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
===================================================================
--- branches/blender2.5/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp 2009-09-04 20:03:27 UTC (rev 23000)
+++ branches/blender2.5/blender/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp 2009-09-04 20:14:59 UTC (rev 23001)
@@ -61,6 +61,7 @@
#include "BKE_report.h"
#include "BLI_blenlib.h"
#include "DNA_scene_types.h"
+#include "DNA_userdef_types.h"
#include "BLO_readfile.h"
#include "BLO_readblenfile.h"
#include "IMB_imbuf.h"
@@ -390,6 +391,13 @@
}
}
#endif
+ // XXX add the ability to change this values to the command line parsing.
+ U.mixbufsize = 2048;
+ U.audiodevice = 2;
+ U.audiorate = 44100;
+ U.audioformat = 0x24;
+ U.audiochannels = 2;
+
for (i = 1; (i < argc) && !error
#ifdef WIN32
&& scr_saver_mode == SCREEN_SAVER_MODE_NONE
More information about the Bf-blender-cvs
mailing list