Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3510 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Mar 11, 2005, 11:45:45 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/soundEngine: now works again due to init-fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/soundEngine/src/sound_control.cc

    r3509 r3510  
    2828*/
    2929SoundControl::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   }
    3630  init();
     31
    3732}
    3833
     
    7772  printf("Opened audio at %d Hz %d bit %s, %d bytes audio buffer\n", audio_rate, bits, audio_channels > 1 ? "stereo" : "mono", audio_buffers );
    7873  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 
    7981}
    8082
Note: See TracChangeset for help on using the changeset viewer.