Diff for /np2/x11/soundmng.c between versions 1.12 and 1.14

version 1.12, 2008/04/02 13:03:34 version 1.14, 2011/01/15 16:01:52
Line 466  static BOOL Line 466  static BOOL
 nosound_drvinit(UINT rate, UINT bufmsec)  nosound_drvinit(UINT rate, UINT bufmsec)
 {  {
   
         UNUSED(rate);  
         UNUSED(bufmsec);  
   
         return SUCCESS;          return SUCCESS;
 }  }
   
Line 511  static void * Line 508  static void *
 nosound_pcmload(UINT num, const char *path)  nosound_pcmload(UINT num, const char *path)
 {  {
   
         UNUSED(num);  
         UNUSED(path);  
   
         return NULL;          return NULL;
 }  }
   
Line 521  static void Line 515  static void
 nosound_pcmdestroy(void *chanp, UINT num)  nosound_pcmdestroy(void *chanp, UINT num)
 {  {
   
         UNUSED(chanp);  
         UNUSED(num);  
   
         /* Nothing to do */          /* Nothing to do */
 }  }
   
Line 531  static void Line 522  static void
 nosound_pcmplay(void *chanp, UINT num, BOOL loop)  nosound_pcmplay(void *chanp, UINT num, BOOL loop)
 {  {
   
         UNUSED(chanp);  
         UNUSED(num);  
         UNUSED(loop);  
   
         /* Nothing to do */          /* Nothing to do */
 }  }
   
Line 542  static void Line 529  static void
 nosound_pcmstop(void *chanp, UINT num)  nosound_pcmstop(void *chanp, UINT num)
 {  {
   
         UNUSED(chanp);  
         UNUSED(num);  
   
         /* Nothing to do */          /* Nothing to do */
 }  }
   
Line 552  static void Line 536  static void
 nosound_pcmvolume(void *chanp, UINT num, int volume)  nosound_pcmvolume(void *chanp, UINT num, int volume)
 {  {
   
         UNUSED(chanp);  
         UNUSED(num);  
         UNUSED(volume);  
   
         /* Nothing to do */          /* Nothing to do */
 }  }
   
Line 905  sdlmixer_pcmload(UINT num, const char *p Line 885  sdlmixer_pcmload(UINT num, const char *p
 {  {
         Mix_Chunk *chunk;          Mix_Chunk *chunk;
   
         UNUSED(num);  
   
         chunk = Mix_LoadWAV(path);          chunk = Mix_LoadWAV(path);
         return (void *)chunk;          return (void *)chunk;
 }  }
Line 932  static void Line 910  static void
 sdlmixer_pcmstop(void *chanp, UINT num)  sdlmixer_pcmstop(void *chanp, UINT num)
 {  {
   
         UNUSED(chanp);  
   
         Mix_HaltChannel(num);          Mix_HaltChannel(num);
 }  }
   
Line 941  static void Line 917  static void
 sdlmixer_pcmvolume(void *chanp, UINT num, int volume)  sdlmixer_pcmvolume(void *chanp, UINT num, int volume)
 {  {
   
         UNUSED(chanp);  
   
         Mix_Volume(num, (MIX_MAX_VOLUME * volume) / 100);          Mix_Volume(num, (MIX_MAX_VOLUME * volume) / 100);
 }  }
   
Line 1001  sdlaudio_callback(void *userdata, unsign Line 975  sdlaudio_callback(void *userdata, unsign
         UINT samples = (UINT)userdata;          UINT samples = (UINT)userdata;
         int nextbuf = sound_nextbuf;          int nextbuf = sound_nextbuf;
   
         UNUSED(len);  
   
         if (sound_event != NULL)          if (sound_event != NULL)
                 memset(sound_event, 0, samples);                  memset(sound_event, 0, samples);
         sound_nextbuf = (sound_nextbuf + 1) % NSOUNDBUFFER;          sound_nextbuf = (sound_nextbuf + 1) % NSOUNDBUFFER;
         sound_event = sound_buffer[sound_nextbuf];          sound_event = sound_buffer[sound_nextbuf];
   
         SDL_MixAudio(stream, (const void *)sound_buffer[nextbuf], samples,          SDL_MixAudio(stream, (const void *)sound_buffer[nextbuf], len,
             SDL_MIX_MAXVOLUME);              SDL_MIX_MAXVOLUME);
 }  }
   

Removed from v.1.12  
changed lines
  Added in v.1.14


RetroPC.NET-CVS <cvs@retropc.net>