Changeset 3510 in orxonox.OLD for orxonox/branches
- Timestamp:
- Mar 11, 2005, 11:45:45 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/soundEngine/src/sound_control.cc
r3509 r3510 28 28 */ 29 29 SoundControl::SoundControl() { 30 if(SDL_Init(SDL_INIT_AUDIO)<0) {31 printf("SDL_Init: INIT_AUDIO error.\n");32 }33 if(Mix_OpenAudio(audio_rate, audio_format, audio_channels, audio_buffers)) {34 printf("Mix_OpenAudio: Failed to open audio!\n");35 }36 30 init(); 31 37 32 } 38 33 … … 77 72 printf("Opened audio at %d Hz %d bit %s, %d bytes audio buffer\n", audio_rate, bits, audio_channels > 1 ? "stereo" : "mono", audio_buffers ); 78 73 Mix_VolumeMusic(volume); 74 75 if(SDL_Init(SDL_INIT_AUDIO)<0) 76 printf("SDL_Init: INIT_AUDIO error.\n"); 77 if(Mix_OpenAudio(audio_rate, audio_format, audio_channels, audio_buffers)) 78 printf("Mix_OpenAudio: Failed to open audio!\n"); 79 80 79 81 } 80 82
Note: See TracChangeset
for help on using the changeset viewer.