/dports/lang/spidermonkey60/firefox-60.9.0/media/sphinxbase/src/libsphinxbase/fe/ |
H A D | fe_prespch_buf.c | 55 int16 *pcm_buf; member 100 …prespch_buf->pcm_buf = (int16 *) ckd_realloc(prespch_buf->pcm_buf, prespch_buf->num_frames_pcm * p… in fe_prespch_extend_pcm() 130 if (!prespch_buf->pcm_buf) { in fe_prespch_read_pcm() 136 *samples = prespch_buf->pcm_buf; in fe_prespch_read_pcm() 148 memcpy(&prespch_buf->pcm_buf[sample_ptr], samples, in fe_prespch_write_pcm() 173 if (prespch_buf->pcm_buf) in fe_prespch_free() 174 ckd_free(prespch_buf->pcm_buf); in fe_prespch_free()
|
/dports/www/firefox-legacy/firefox-52.8.0esr/media/sphinxbase/src/libsphinxbase/fe/ |
H A D | fe_prespch_buf.c | 55 int16 *pcm_buf; member 100 …prespch_buf->pcm_buf = (int16 *) ckd_realloc(prespch_buf->pcm_buf, prespch_buf->num_frames_pcm * p… in fe_prespch_extend_pcm() 130 if (!prespch_buf->pcm_buf) { in fe_prespch_read_pcm() 136 *samples = prespch_buf->pcm_buf; in fe_prespch_read_pcm() 148 memcpy(&prespch_buf->pcm_buf[sample_ptr], samples, in fe_prespch_write_pcm() 173 if (prespch_buf->pcm_buf) in fe_prespch_free() 174 ckd_free(prespch_buf->pcm_buf); in fe_prespch_free()
|
/dports/audio/deadbeef/deadbeef-0.7.2/plugins/gme/game-music-emu-0.6pre/gme/ |
H A D | Gym_Emu.cpp | 34 pcm_buf = stereo_buf.center(); in Gym_Emu() 263 pcm_buf = stereo_buf.center(); in start_track_() 310 pcm_synth.offset_resampled( time, delta, pcm_buf ); in run_pcm() 314 pcm_buf->set_modified(); in run_pcm() 352 Blip_Buffer * pcm_buf = NULL; in parse_frame() local 355 case 0: pcm_buf = NULL; break; in parse_frame() 356 case 1: pcm_buf = stereo_buf.right(); break; in parse_frame() 357 case 2: pcm_buf = stereo_buf.left(); break; in parse_frame() 358 case 3: pcm_buf = stereo_buf.center(); break; in parse_frame() 365 this->pcm_buf = pcm_buf; in parse_frame() [all …]
|
/dports/multimedia/musikcube/musikcube-0.96.7/src/plugins/gmedecoder/gme/ |
H A D | Gym_Emu.cpp | 34 pcm_buf = stereo_buf.center(); in Gym_Emu() 263 pcm_buf = stereo_buf.center(); in start_track_() 310 pcm_synth.offset_resampled( time, delta, pcm_buf ); in run_pcm() 314 pcm_buf->set_modified(); in run_pcm() 352 Blip_Buffer * pcm_buf = NULL; in parse_frame() local 355 case 0: pcm_buf = NULL; break; in parse_frame() 356 case 1: pcm_buf = stereo_buf.right(); break; in parse_frame() 357 case 2: pcm_buf = stereo_buf.left(); break; in parse_frame() 358 case 3: pcm_buf = stereo_buf.center(); break; in parse_frame() 365 this->pcm_buf = pcm_buf; in parse_frame() [all …]
|
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/audio/ |
H A D | ossaudio.c | 52 void *pcm_buf; member 64 void *pcm_buf; member 480 if (oss->pcm_buf) { in oss_fini_out() 489 g_free (oss->pcm_buf); in oss_fini_out() 491 oss->pcm_buf = NULL; in oss_fini_out() 543 oss->pcm_buf = mmap ( in oss_init_out() 551 if (oss->pcm_buf == MAP_FAILED) { in oss_init_out() 588 if (!oss->pcm_buf) { in oss_init_out() 707 if (!oss->pcm_buf) { in oss_init_in() 725 g_free(oss->pcm_buf); in oss_fini_in() [all …]
|
H A D | wavaudio.c | 36 void *pcm_buf; member 72 dst = advance (wav->pcm_buf, rpos << hw->info.shift); in wav_run_out() 142 wav->pcm_buf = audio_calloc(__func__, hw->samples, 1 << hw->info.shift); in wav_init_out() 143 if (!wav->pcm_buf) { in wav_init_out() 158 g_free (wav->pcm_buf); in wav_init_out() 159 wav->pcm_buf = NULL; in wav_init_out() 214 g_free (wav->pcm_buf); in wav_fini_out() 215 wav->pcm_buf = NULL; in wav_fini_out()
|
H A D | paaudio.c | 32 void *pcm_buf; member 44 void *pcm_buf; member 584 if (!pa->pcm_buf) { in qpa_init_out() 597 g_free (pa->pcm_buf); in qpa_init_out() 598 pa->pcm_buf = NULL; in qpa_init_out() 641 if (!pa->pcm_buf) { in qpa_init_in() 654 g_free (pa->pcm_buf); in qpa_init_in() 655 pa->pcm_buf = NULL; in qpa_init_in() 681 g_free (pa->pcm_buf); in qpa_fini_out() 682 pa->pcm_buf = NULL; in qpa_fini_out() [all …]
|
H A D | alsaaudio.c | 68 void *pcm_buf; member 76 void *pcm_buf; member 714 char *src = advance (alsa->pcm_buf, alsa->wpos << hw->info.shift); in alsa_write_pending() 777 decr = audio_pcm_hw_clip_out (hw, alsa->pcm_buf, decr, alsa->pending); in alsa_run_out() 790 g_free(alsa->pcm_buf); in alsa_fini_out() 791 alsa->pcm_buf = NULL; in alsa_fini_out() 827 if (!alsa->pcm_buf) { in alsa_init_out() 938 if (!alsa->pcm_buf) { in alsa_init_in() 956 g_free(alsa->pcm_buf); in alsa_fini_in() 957 alsa->pcm_buf = NULL; in alsa_fini_in() [all …]
|
/dports/devel/sdl12/SDL-1.2.15/src/audio/nto/ |
H A D | SDL_nto_audio.c | 260 pcmbuffer = pcm_buf; in NTO_PlayAudio() 264 written = snd_pcm_plugin_write(audio_handle, pcm_buf, towrite); in NTO_PlayAudio() 322 return pcm_buf; in NTO_GetAudioBuf() 357 if (pcm_buf != NULL) in NTO_OpenAudio() 359 SDL_FreeAudioMem(pcm_buf); in NTO_OpenAudio() 360 pcm_buf = NULL; in NTO_OpenAudio() 477 pcm_buf = (Uint8*)SDL_AllocAudioMem(pcm_len); in NTO_OpenAudio() 478 if (pcm_buf == NULL) in NTO_OpenAudio() 483 SDL_memset(pcm_buf, spec->silence, pcm_len); in NTO_OpenAudio()
|
H A D | SDL_nto_audio.h | 48 Uint8* pcm_buf; member 62 #define pcm_buf (this->hidden->pcm_buf) macro
|
/dports/multimedia/butt/butt-0.1.27/src/ |
H A D | lame_encode.cpp | 71 int lame_enc_encode(lame_enc *lame, short *pcm_buf, char *enc_buf, int samples, int size) in lame_enc_encode() argument 82 … rc = lame_encode_buffer_interleaved(lame->gfp, pcm_buf, samples, (unsigned char*)enc_buf, size); in lame_enc_encode() 84 … rc = lame_encode_buffer(lame->gfp, pcm_buf, pcm_buf, samples, (unsigned char*)enc_buf, size); in lame_enc_encode()
|
H A D | vorbis_encode.cpp | 79 int vorbis_enc_encode(vorbis_enc *vorbis, short *pcm_buf, char *enc_buf, int size) in vorbis_enc_encode() argument 105 vorbis_buf[0][i] = pcm_buf[i*2]/32768.f; in vorbis_enc_encode() 106 vorbis_buf[1][i] = pcm_buf[i*2+1]/32768.f; in vorbis_enc_encode() 113 vorbis_buf[0][i] = pcm_buf[i]/32768.f; in vorbis_enc_encode()
|
H A D | flac_encode.h | 42 int flac_enc_encode(flac_enc *flac, short *pcm_buf, int samples_per_chan, int channel); 43 int flac_enc_encode_stream(flac_enc *flac, short *pcm_buf, uint8_t *enc_buf, int samples_per_chan, …
|
/dports/multimedia/transcode/transcode-1.1.7/import/ |
H A D | a52_decore.c | 93 int16_t pcm_buf[256 * A52_BLOCKS]; in a52_decore() local 215 …UX) ? float2s16((float *)samples, (int16_t *)&pcm_buf) : float2s16_2((float *)samples, (int16_t *)… in a52_decore() 217 if((bytes_wrote=tc_pwrite(decode->fd_out, (char*) pcm_buf, pcm_size)) < pcm_size) { in a52_decore() 236 …UX) ? float2s16((float *)samples, (int16_t *)&pcm_buf) : float2s16_2((float *)samples, (int16_t *)… in a52_decore()
|
/dports/net/sems/sems-f89581a/core/plug-in/adpcm/ |
H A D | adpcm.c | 185 short* pcm_buf = (short*)out_buf; in G726_16_2_Pcm16() local 196 pcm_buf[4*i+j] = g723_16_decoder(w, AUDIO_ENCODING_LINEAR, in G726_16_2_Pcm16() 237 short* pcm_buf = (short*)out_buf; in G726_24_2_Pcm16() local 252 pcm_buf[8*(i/3)+j] = in G726_24_2_Pcm16() 292 short* pcm_buf = (short*)out_buf; in G726_32_2_Pcm16() local 303 pcm_buf[2*i+j] = in G726_32_2_Pcm16() 349 short* pcm_buf = (short*)out_buf; in G726_40_2_Pcm16() local 366 pcm_buf[8*(i/5)+j] = in G726_40_2_Pcm16()
|
/dports/games/libretro-mame2000/mame2000-libretro-e364a15/src/sound/ |
H A D | segapcm.c | 186 unsigned char *pcm_buf; in SEGAPCMUpdate() local 213 pcm_buf = pcm_rom + (((int)spcm.bank[i]&spcm.bankmask)<<spcm.bankshift); in SEGAPCMUpdate() 243 spcm.pcmd[i] = (int)(*(pcm_buf + old_addr) - SPCM_CENTER); in SEGAPCMUpdate() 252 …*(datap[0] + j) = ILimit( (int)*(datap[0] + j) + ((int)(*(pcm_buf + addr) - SPCM_CENTER)*lv), 3276… in SEGAPCMUpdate() 253 …*(datap[1] + j) = ILimit( (int)*(datap[1] + j) + ((int)(*(pcm_buf + addr) - SPCM_CENTER)*rv), 3276… in SEGAPCMUpdate() 255 …*(datap[0] + j) = clip_short_ret( (int)*(datap[0] + j) + ((int)(*(pcm_buf + addr) - SPCM_CENTER)*l… in SEGAPCMUpdate() 256 …*(datap[1] + j) = clip_short_ret( (int)*(datap[1] + j) + ((int)(*(pcm_buf + addr) - SPCM_CENTER)*r… in SEGAPCMUpdate()
|
/dports/audio/mhwaveedit/mhwaveedit-1.4.24/src/ |
H A D | dataformat.c | 937 for (i=0; i<256; i++) pcm_buf[i] = i; in conversion_selftest() 1002 memset(pcm_buf,0,sizeof(pcm_buf)); in conversion_selftest() 1003 memset(pcm_buf2,0,sizeof(pcm_buf)); in conversion_selftest() 1004 memset(pcm_buf3,0,sizeof(pcm_buf)); in conversion_selftest() 1005 convert_array(sbuf,&dataformat_sample_t,pcm_buf,fmt, in conversion_selftest() 1030 if (memcmp(pcm_buf,pcm_buf3, in conversion_selftest() 1039 sbuf [j], pcm_buf[k], pcm_buf[k+1], pcm_buf[k+2], pcm_buf[k+3], in conversion_selftest() 1062 memset(pcm_buf,0,8); in conversion_selftest() 1064 pcm_buf[sgnloc] = 0x80; in conversion_selftest() 1065 pcm_buf[samplesizes[i]+sgnloc] = 0x80; in conversion_selftest() [all …]
|
/dports/games/edge/Edge-1.35-source/src/ |
H A D | s_humid.cc | 47 pcm_buf = new char[BUFFER_SIZE]; in humdinger_c() 59 delete[] pcm_buf; in ~humdinger_c() 60 pcm_buf = NULL; in ~humdinger_c() 103 int p_res = hum_dev->PlaySome(pcm_buf, BUFFER_SIZE / 4 /* FIXME */, Humidity::S16); in StreamIntoBuffer() 119 alBufferData(buffer, format, pcm_buf, BUFFER_SIZE, 22050); in StreamIntoBuffer()
|
/dports/net/iaxmodem/iaxmodem-1.2.0/lib/spandsp/tests/ |
H A D | testadsi.c | 192 int16_t pcm_buf[1024]; in channel_read_adsi_channel() local 197 pcm_buf[i] = alaw_to_linear(buf[i]); in channel_read_adsi_channel() 201 pcm_buf, in channel_read_adsi_channel() 209 dtmf_rx(&chan_stuff[chan].dtmf_state, pcm_buf, len); in channel_read_adsi_channel() 235 adsi_rx(&(chan_stuff[chan].adsi_rx), pcm_buf, len); in channel_read_adsi_channel() 241 int16_t pcm_buf[1024]; in channel_write_adsi_channel() local 256 len = adsi_tx(&(chan_stuff[chan].adsi_tx), pcm_buf, max_len); in channel_write_adsi_channel() 259 pcm_buf, in channel_write_adsi_channel() 262 buf[i] = linear_to_alaw(pcm_buf[i]); in channel_write_adsi_channel()
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/spandsp/tests/ |
H A D | testadsi.c | 190 int16_t pcm_buf[1024]; in channel_read_adsi_channel() local 195 pcm_buf[i] = alaw_to_linear(buf[i]); in channel_read_adsi_channel() 199 pcm_buf, in channel_read_adsi_channel() 207 dtmf_rx(&chan_stuff[chan].dtmf_state, pcm_buf, len); in channel_read_adsi_channel() 233 adsi_rx(&(chan_stuff[chan].adsi_rx), pcm_buf, len); in channel_read_adsi_channel() 239 int16_t pcm_buf[1024]; in channel_write_adsi_channel() local 254 len = adsi_tx(&(chan_stuff[chan].adsi_tx), pcm_buf, max_len); in channel_write_adsi_channel() 257 pcm_buf, in channel_write_adsi_channel() 260 buf[i] = linear_to_alaw(pcm_buf[i]); in channel_write_adsi_channel()
|
/dports/comms/spandsp/spandsp-284fe91/tests/ |
H A D | testadsi.c | 190 int16_t pcm_buf[1024]; in channel_read_adsi_channel() local 195 pcm_buf[i] = alaw_to_linear(buf[i]); in channel_read_adsi_channel() 199 pcm_buf, in channel_read_adsi_channel() 207 dtmf_rx(&chan_stuff[chan].dtmf_state, pcm_buf, len); in channel_read_adsi_channel() 233 adsi_rx(&(chan_stuff[chan].adsi_rx), pcm_buf, len); in channel_read_adsi_channel() 239 int16_t pcm_buf[1024]; in channel_write_adsi_channel() local 254 len = adsi_tx(&(chan_stuff[chan].adsi_tx), pcm_buf, max_len); in channel_write_adsi_channel() 257 pcm_buf, in channel_write_adsi_channel() 260 buf[i] = linear_to_alaw(pcm_buf[i]); in channel_write_adsi_channel()
|
/dports/emulators/x16-emulator/x16-emulator-r38/ |
H A D | audio.c | 138 int16_t pcm_buf[2 * SAMPLES_PER_BUFFER]; in audio_render() local 139 pcm_render(pcm_buf, SAMPLES_PER_BUFFER); in audio_render() 153 buf[i] = ((int)psg_buf[i] + (int)pcm_buf[i] + (int)ym_buf[i]) / 3; in audio_render()
|
/dports/devel/sdl20/SDL2-2.0.18/src/audio/qsa/ |
H A D | SDL_qsa_audio.c | 154 pcmbuffer = this->hidden->pcm_buf; in QSA_PlayDevice() 236 return this->hidden->pcm_buf; in QSA_GetDeviceBuf() 255 SDL_free(this->hidden->pcm_buf); in QSA_CloseDevice() 437 this->hidden->pcm_buf = in QSA_OpenDevice() 439 if (this->hidden->pcm_buf == NULL) { in QSA_OpenDevice() 442 SDL_memset(this->hidden->pcm_buf, this->spec.silence, in QSA_OpenDevice()
|
/dports/graphics/milton/milton-1.9.1/third_party/SDL2-2.0.8/src/audio/qsa/ |
H A D | SDL_qsa_audio.c | 152 pcmbuffer = this->hidden->pcm_buf; in QSA_PlayDevice() 234 return this->hidden->pcm_buf; in QSA_GetDeviceBuf() 253 SDL_free(this->hidden->pcm_buf); in QSA_CloseDevice() 435 this->hidden->pcm_buf = in QSA_OpenDevice() 437 if (this->hidden->pcm_buf == NULL) { in QSA_OpenDevice() 440 SDL_memset(this->hidden->pcm_buf, this->spec.silence, in QSA_OpenDevice()
|
/dports/x11/controllermap/SDL2-2.0.18/src/audio/qsa/ |
H A D | SDL_qsa_audio.c | 154 pcmbuffer = this->hidden->pcm_buf; in QSA_PlayDevice() 236 return this->hidden->pcm_buf; in QSA_GetDeviceBuf() 255 SDL_free(this->hidden->pcm_buf); in QSA_CloseDevice() 437 this->hidden->pcm_buf = in QSA_OpenDevice() 439 if (this->hidden->pcm_buf == NULL) { in QSA_OpenDevice() 442 SDL_memset(this->hidden->pcm_buf, this->spec.silence, in QSA_OpenDevice()
|