diff options
author | Joerg Mueller <nexyon@gmail.com> | 2009-09-05 00:14:59 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2009-09-05 00:14:59 +0400 |
commit | 5342f7930fb26855b92f337ace45f2ee51153957 (patch) | |
tree | df2a8a86c3f29ab29360fc25ff3f349e7fd8be2a /source | |
parent | 944d0e908728d07a5a8da809baf448592ba9e701 (diff) |
Added sound device default settings for the gameplayer.
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/GamePlayer/ghost/GPG_ghost.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp index edc32093eab..fb2e1c72a85 100644 --- a/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp +++ b/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp @@ -61,6 +61,7 @@ extern "C" #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 @@ int main(int argc, char** argv) } } #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 |