/dports/games/libretro-quicknes/QuickNES_Core-901248a/nes_emu/ |
H A D | Nes_Emu.cpp | 42 sound_buf = &silent_buffer; in Nes_Emu() 83 sound_buf->clear(); in clear_sound_buf() 166 if ( sound_buf->samples_avail() ) in emulate_frame() 170 sound_buf->end_frame( frame_len, false ); in emulate_frame() 173 f->sample_count = sound_buf->samples_avail(); in emulate_frame() 174 f->chan_count = sound_buf->samples_per_frame(); in emulate_frame() 280 sound_buf = new_buf; in set_sample_rate() 306 sound_buf->bass_freq( equalizer_.bass ); in set_equalizer() 316 Blip_Buffer* buf = sound_buf->channel( i ).center; in enable_sound() 511 sound_buf->SaveAudioBufferState(); in SaveAudioBufferState() [all …]
|
H A D | Nes_Emu.h | 235 Multi_Buffer* sound_buf; variable
|
/dports/emulators/vice/vice-3.5/src/sounddrv/ |
H A D | soundbsp.cc | 48 static int16_t *sound_buf; variable 91 memcpy((int16_t *)cb_buf + total, sound_buf + buf_outptr, amount * sizeof(int16_t)); in bsp_callback() 123 sound_buf = (int16_t *)lib_malloc(sizeof(int16_t) * buf_len); in bsp_init() 124 memset(sound_buf, 0, sizeof(int16_t) * buf_len); in bsp_init() 156 memcpy(sound_buf + buf_inptr, pbuf + total, amount * sizeof(int16_t)); in bsp_write() 192 lib_free(sound_buf); in bsp_close() 193 sound_buf = NULL; in bsp_close() 205 memset(sound_buf, 0, buf_len); in bsp_resume()
|
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/sounddrv/ |
H A D | soundbsp.cc | 48 static int16_t *sound_buf; variable 91 memcpy((int16_t *)cb_buf + total, sound_buf + buf_outptr, amount * sizeof(int16_t)); in bsp_callback() 123 sound_buf = (int16_t *)lib_malloc(sizeof(int16_t) * buf_len); in bsp_init() 124 memset(sound_buf, 0, sizeof(int16_t) * buf_len); in bsp_init() 157 memcpy(sound_buf + buf_inptr, pbuf + total, amount * sizeof(int16_t)); in bsp_write() 193 lib_free(sound_buf); in bsp_close() 194 sound_buf = NULL; in bsp_close() 206 memset(sound_buf, 0, buf_len); in bsp_resume()
|
/dports/games/libretro-gambatte/gambatte-libretro-22abc24/libgambatte/libretro/ |
H A D | cc_resampler.h | 50 static void CC_renderaudio(audio_frame_t* sound_buf, unsigned samples) in CC_renderaudio() argument 91 ::"r" (CC_kernel+CC_accumulated_samples),"r" (sound_buf+i) in CC_renderaudio() 158 static void CC_renderaudio(audio_frame_t* sound_buf, unsigned samples) in CC_renderaudio() argument 187 current_l += sound_buf[i].l * CC_kernel[accumulated_samples]; in CC_renderaudio() 188 current_r += sound_buf[i].r * CC_kernel[accumulated_samples]; in CC_renderaudio() 189 next_l += sound_buf[i].l * CC_kernel_r[accumulated_samples]; in CC_renderaudio() 190 next_r += sound_buf[i].r * CC_kernel_r[accumulated_samples]; in CC_renderaudio()
|
H A D | libretro.cpp | 1680 } static sound_buf; in retro_run() local 1686 CC_renderaudio((audio_frame_t*)sound_buf.u32, samples); in retro_run() 1688 render_audio(sound_buf.i16, samples); in retro_run() 1693 blipper_read(resampler_l, sound_buf.i16 + 0, read_avail, 2); in retro_run() 1694 blipper_read(resampler_r, sound_buf.i16 + 1, read_avail, 2); in retro_run() 1695 audio_batch_cb(sound_buf.i16, read_avail); in retro_run() 1709 CC_renderaudio((audio_frame_t*)sound_buf.u32, samples); in retro_run() 1711 render_audio(sound_buf.i16, samples); in retro_run() 1722 blipper_read(resampler_l, sound_buf.i16 + 0, read_avail, 2); in retro_run() 1723 blipper_read(resampler_r, sound_buf.i16 + 1, read_avail, 2); in retro_run() [all …]
|
/dports/audio/aylet/aylet-0.5/ |
H A D | sound.c | 74 static signed short *sound_buf; variable 211 if(sound_buf) in sound_end() 212 free(sound_buf); in sound_end() 331 for(f=0,ptr=sound_buf;f<sound_framesiz;f++) in sound_ay_overlay() 610 ptr=sound_buf+(sound_stereo?sound_fillpos*2:sound_fillpos); in sound_frame() 628 ptr=sound_buf; in sound_frame() 646 silent_level=sound_buf[fulllen-1]; in sound_frame() 655 ptr=sound_buf; in sound_frame() 671 driver_frame(sound_buf,fulllen); in sound_frame() 753 ptr=sound_buf+(sound_stereo?sound_fillpos*2:sound_fillpos); in sound_beeper() [all …]
|
/dports/audio/ocp/ocp-0.2.90/playay/ |
H A D | sound.c | 59 static int16_t *sound_buf; variable 133 sound_buf=malloc(sizeof(int16_t)*sound_framesiz*6); in sound_init() 134 if(sound_buf==NULL) in sound_init() 150 if(sound_buf) in sound_end() 152 free(sound_buf); in sound_end() 153 sound_buf = 0; in sound_end() 235 for(f=0,ptr=sound_buf;f<sound_framesiz;f++) in sound_ay_overlay() 526 ptr=sound_buf; in sound_frame() 557 memset(sound_buf,0,fulllen*sizeof(int16_t)),silent=1; in sound_frame() 560 ptr=sound_buf; in sound_frame() [all …]
|
/dports/games/uqm/uqm-0.8.0/src/uqm/ |
H A D | sounds.c | 27 static SOUND sound_buf[MAX_SOUNDS]; variable 88 memset (sound_buf, 0, sizeof (sound_buf)); in ProcessSound() 94 sound_buf[num_sounds] = Sound; in ProcessSound() 170 pSound = sound_buf; in FlushSounds()
|
/dports/audio/deadbeef/deadbeef-0.7.2/plugins/vtx/ |
H A D | ay8912.c | 409 unsigned char *sound_buf = buff; in ayemu_gen_sound() local 475 *sound_buf++ = mix_l; in ayemu_gen_sound() 477 *sound_buf++ = mix_r; in ayemu_gen_sound() 479 *sound_buf++ = mix_l & 0x00FF; /* 16 bit sound */ in ayemu_gen_sound() 480 *sound_buf++ = (mix_l >> 8); in ayemu_gen_sound() 482 *sound_buf++ = mix_r & 0x00FF; in ayemu_gen_sound() 483 *sound_buf++ = (mix_r >> 8); in ayemu_gen_sound() 487 return sound_buf; in ayemu_gen_sound()
|
/dports/multimedia/audacious-plugins/audacious-plugins-4.1/src/vtx/ |
H A D | ay8912.cc | 405 unsigned char *sound_buf = (unsigned char *) buff; in ayemu_gen_sound() local 471 *sound_buf++ = mix_l; in ayemu_gen_sound() 473 *sound_buf++ = mix_r; in ayemu_gen_sound() 475 *sound_buf++ = mix_l & 0x00FF; /* 16 bit sound */ in ayemu_gen_sound() 476 *sound_buf++ = (mix_l >> 8); in ayemu_gen_sound() 478 *sound_buf++ = mix_r & 0x00FF; in ayemu_gen_sound() 479 *sound_buf++ = (mix_r >> 8); in ayemu_gen_sound() 483 return sound_buf; in ayemu_gen_sound()
|
/dports/audio/sc3-plugins/sc3-plugins-Version-3.9.0/source/AYUGens/AY_libayemu/src/ |
H A D | ay8912.c | 405 unsigned char *sound_buf = buff; in ayemu_gen_sound() local 471 *sound_buf++ = mix_l; in ayemu_gen_sound() 473 *sound_buf++ = mix_r; in ayemu_gen_sound() 475 *sound_buf++ = mix_l & 0x00FF; /* 16 bit sound */ in ayemu_gen_sound() 476 *sound_buf++ = (mix_l >> 8); in ayemu_gen_sound() 478 *sound_buf++ = mix_r & 0x00FF; in ayemu_gen_sound() 479 *sound_buf++ = (mix_r >> 8); in ayemu_gen_sound() 483 return sound_buf; in ayemu_gen_sound()
|
/dports/games/nxengine/nxengine-evo-2.6.5-1/src/sound/ |
H A D | Pixtone.cpp | 394 Uint8 *sound_buf = (Uint8 *)SDL_malloc(cvt.len_cvt); in playResampled() local 395 SDL_memcpy(sound_buf, (Uint8 *)cvt.buf, cvt.len_cvt); in playResampled() 398 _sound_fx[slot].resampled[rslot] = Mix_QuickLoad_RAW(sound_buf, cvt.len_cvt); in playResampled() 469 Uint8 *sound_buf = (Uint8 *)SDL_malloc(cvt.len_cvt); in prepareResampled() local 470 SDL_memcpy(sound_buf, (Uint8 *)cvt.buf, cvt.len_cvt); in prepareResampled() 473 _sound_fx[slot].resampled[rslot] = Mix_QuickLoad_RAW(sound_buf, cvt.len_cvt); in prepareResampled() 525 Uint8 *sound_buf = (Uint8 *)SDL_malloc(cvt.len_cvt); in _prepareToPlay() local 526 SDL_memcpy(sound_buf, (Uint8 *)cvt.buf, cvt.len_cvt); in _prepareToPlay() 529 _sound_fx[slot].chunk = Mix_QuickLoad_RAW(sound_buf, cvt.len_cvt); in _prepareToPlay()
|
/dports/games/libretro-yabause/yabause-ea5b118/yabause/src/libretro/ |
H A D | libretro.c | 331 static s16 *sound_buf; variable 337 if ((sound_buf = (s16 *)malloc(soundbufsize)) == NULL) in SNDLIBRETROInit() 339 memset(sound_buf, 0, soundbufsize); in SNDLIBRETROInit() 344 if (sound_buf) in SNDLIBRETRODeInit() 345 free(sound_buf); in SNDLIBRETRODeInit() 354 if (sound_buf) in SNDLIBRETROChangeVideoFormat() 355 free(sound_buf); in SNDLIBRETROChangeVideoFormat() 356 if ((sound_buf = (s16 *)malloc(soundbufsize)) == NULL) in SNDLIBRETROChangeVideoFormat() 358 memset(sound_buf, 0, soundbufsize); in SNDLIBRETROChangeVideoFormat() 392 sdlConvert32uto16s((int32_t*)leftchanbuffer, (int32_t*)rightchanbuffer, sound_buf, num_samples); in SNDLIBRETROUpdateAudio() [all …]
|
/dports/games/libretro-beetle_ngp/beetle-ngp-libretro-74cc0d8/ |
H A D | libretro.c | 96 static void Emulate(EmulateSpecStruct *espec, int16_t *sound_buf) in Emulate() argument 141 espec->SoundBufSize = MDFNNGPCSOUND_Flush(sound_buf, in Emulate() 711 static int16_t sound_buf[0x10000]; in retro_run() local 728 spec.SoundBufMaxSize = sizeof(sound_buf) / 2; in retro_run() 752 Emulate(&spec, sound_buf); in retro_run() 766 total += audio_batch_cb(sound_buf + total*2, spec.SoundBufSize - total); in retro_run()
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/menuui/ |
H A D | optionsmenumulti.h | 42 void options_multi_set_voice_data(unsigned char *sound_buf, int buf_size, double gain);
|
H A D | optionsmenumulti.cpp | 2339 void options_multi_set_voice_data(unsigned char *sound_buf, int buf_size, double /*gain*/) in options_multi_set_voice_data() argument 2341 if ( (sound_buf == NULL) || (buf_size <= 0) ) { in options_multi_set_voice_data() 2347 memcpy(Om_vox_voice_buffer, sound_buf, Om_vox_voice_buffer_size); in options_multi_set_voice_data() 2355 memcpy(Om_vox_comp_buffer + Om_vox_voice_comp_size, sound_buf, buf_size); in options_multi_set_voice_data()
|
/dports/games/diaspora/Diaspora_R1_Linux/Diaspora/fs2_open/code/menuui/ |
H A D | optionsmenumulti.h | 42 void options_multi_set_voice_data(unsigned char *sound_buf, int buf_size, double gain);
|
/dports/games/libretro-beetle_vb/beetle-vb-libretro-7412262/ |
H A D | libretro.cpp | 2048 static void Emulate(EmulateSpecStruct *espec, int16_t *sound_buf) in Emulate() argument 2075 if(sound_buf) in Emulate() 2080 … espec->SoundBufSize = Blip_Buffer_read_samples(&sbuf[y], sound_buf + y, espec->SoundBufMaxSize); in Emulate() 2671 static int16_t sound_buf[0x10000]; in retro_run() local 2681 spec.SoundBufMaxSize = sizeof(sound_buf) / 2; in retro_run() 2699 Emulate(&spec, sound_buf); in retro_run() 2701 int16 *const SoundBuf = sound_buf + spec.SoundBufSizeALMS * EmulatedVB.soundchan; in retro_run() 2724 audio_batch_cb(sound_buf, spec.SoundBufSize); in retro_run()
|
/dports/audio/mp3blaster/mp3blaster-3.2.6/mpegsound/ |
H A D | mpegtoraw.cc | 251 memcpy(sound_buf+offset,bufje->data,bufje->framesize); in threadplay() 253 sound_buf+offset, bufje->framesize); in threadplay() 269 processed=player->putblock_nt(sound_buf,offset); in threadplay() 280 memmove(sound_buf, sound_buf + processed, in threadplay() 528 this->sound_buf=(unsigned char *)malloc(RAWDATASIZE*THREAD_TIMES*sizeof(short int)); in Mpegtoraw() 550 free(sound_buf); in ~Mpegtoraw()
|
/dports/games/libretro-beetle_bsnes/beetle-bsnes-libretro-b65ded5bde278c18af538c687db9b72c995b220a/ |
H A D | libretro.cpp | 291 static int16_t sound_buf[0x10000]; in retro_run() local 298 spec.SoundBuf = sound_buf; in retro_run() 300 spec.SoundBufMaxSize = sizeof(sound_buf) / 2; in retro_run()
|
/dports/games/libretro-beetle_lynx/beetle-lynx-libretro-35119c9/ |
H A D | libretro.cpp | 451 static int16_t sound_buf[0x10000]; in retro_run() local 458 spec.SoundBuf = sound_buf; in retro_run() 460 spec.SoundBufMaxSize = sizeof(sound_buf) / 2; in retro_run()
|
/dports/games/libretro-beetle_gba/beetle-gba-libretro-8d1e421/ |
H A D | libretro.cpp | 471 static int16_t sound_buf[0x10000]; in retro_run() local 478 spec.SoundBuf = sound_buf; in retro_run() 480 spec.SoundBufMaxSize = sizeof(sound_buf) / 2; in retro_run()
|
/dports/games/libretro-beetle_wswan/beetle-wswan-libretro-5b03d1b/ |
H A D | libretro.cpp | 813 static int16_t sound_buf[0x10000]; in retro_run() local 828 spec.SoundBuf = sound_buf; in retro_run() 830 spec.SoundBufMaxSize = sizeof(sound_buf) / 2; in retro_run()
|
/dports/audio/moc/moc-2.5.2/decoder_plugins/speex/ |
H A D | speex.c | 547 static int spx_decode (void *prv_data, char *sound_buf, int nbytes, in spx_decode() argument 552 int16_t *out = (int16_t *)sound_buf; in spx_decode()
|