iOS/libraries/allegro/allegro/src/psp/psound.c
/* psp_audio_channel_thread:
 *  This PSP thread manages the audio playing.
 */
This PSP thread manages the audio playing.
This PSP thread manages the audio playing .
static int psp_audio_channel_thread()
{
   while (psp_audio_on) {
      void *bufptr = &sound_buffer[curr_buffer];
      _mix_some_samples((uintptr_t)bufptr, 0, IS_SIGNED);
      sceAudioOutputPannedBlocking(hw_channel, PSP_AUDIO_VOLUME_MAX,
         PSP_AUDIO_VOLUME_MAX, bufptr);
      curr_buffer = !curr_buffer;
   }
   sceKernelExitThread(0);
   return 0;
}
static int psp_audio_channel_thread ( ) { while ( psp_audio_on ) { void * bufptr = & sound_buffer [ curr_buffer ] ; _mix_some_samples ( ( uintptr_t ) bufptr , 0 , IS_SIGNED ) ; sceAudioOutputPannedBlocking ( hw_channel , PSP_AUDIO_VOLUME_MAX , PSP_AUDIO_VOLUME_MAX , bufptr ) ; curr_buffer = ! curr_buffer ; } sceKernelExitThread ( 0 ) ; return 0 ; }
psp_audio_channel_thread:
  This PSP thread manages the audio playing.
psp_audio_channel_thread : This PSP thread manages the audio playing .
/* Asks to the Allegro mixer to fill the buffer */ /* Send mixed buffer to sound card */