/frameworks/base/core/java/android/speech/srec/ |
UlawEncoderInputStream.java | 28 * InputStream which transforms 16 bit pcm data to ulaw data. 81 int pcm = (0xff & pcmBuf[pcmOffset++]) + (pcmBuf[pcmOffset++] << 8); local 82 pcm = (pcm * coef) >> SCALE_BITS; 85 if (pcm >= 0) { 86 ulaw = pcm <= 0 ? 0xff : 87 pcm <= 30 ? 0xf0 + (( 30 - pcm) >> 1) : 88 pcm <= 94 ? 0xe0 + (( 94 - pcm) >> 2) 123 int pcm = (0xff & pcmBuf[offset++]) + (pcmBuf[offset++] << 8); local [all...] |
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/test/QA/ |
diffiSACPLC.txt | 10 diff $OUTDIR1/outplc1.pcm $OUTDIR2/outplc1.pcm 11 diff $OUTDIR1/outplc2.pcm $OUTDIR2/outplc2.pcm 12 diff $OUTDIR1/outplc3.pcm $OUTDIR2/outplc3.pcm 13 diff $OUTDIR1/outplc4.pcm $OUTDIR2/outplc4.pcm 14 diff $OUTDIR1/outplc5.pcm $OUTDIR2/outplc5.pcm [all...] |
diffiSAC.txt | 4 diff ../dataqa350/i30_1DTMF_16kHz_long.pcm ../dataqa351/i30_1DTMF_16kHz_long.pcm 5 diff ../dataqa350/i60_1DTMF_16kHz_long.pcm ../dataqa351/i60_1DTMF_16kHz_long.pcm 6 diff ../dataqa350/i30_2DTMF_16kHz_long.pcm ../dataqa351/i30_2DTMF_16kHz_long.pcm 7 diff ../dataqa350/i60_2DTMF_16kHz_long.pcm ../dataqa351/i60_2DTMF_16kHz_long.pcm 8 diff ../dataqa350/i30_3DTMF_16kHz_long.pcm ../dataqa351/i30_3DTMF_16kHz_long.pcm [all...] |
runiSACPLC.txt | 13 $ISAC 12000 -PL 15 $INDIR/speechmusic.pcm $OUTDIR/outplc1.pcm 14 $ISAC 20000 -PL 15 $INDIR/speechmusic.pcm $OUTDIR/outplc2.pcm 15 $ISAC 32000 -PL 15 $INDIR/speechmusic.pcm $OUTDIR/outplc3.pcm 16 $ISAC 12000 -PL 15 $INDIR/tone_cisco.pcm $OUTDIR/outplc4.pcm 17 $ISAC 20000 -PL 15 $INDIR/tone_cisco.pcm $OUTDIR/outplc5.pcm [all...] |
runiSACRate.txt | 8 ../Release/kenny.exe 13000 -FIXED_FL -FL 30 -MAX 100 ../data/orig/sawsweep_380_60.pcm $OUTDIR/out_napi_1.pcm > $LOGG 9 ../Release/kenny.exe ../data/orig/bottlenecks.txt -FIXED_FL -FL 30 -MAXRATE 32000 ../data/orig/sawsweep_380_60.pcm $OUTDIR/out_napi_2.pcm >> $LOGG 10 ../Release/kenny.exe 13000 -FIXED_FL -FL 30 -MAX 100 ../data/orig/sawsweep_380_60.pcm $OUTDIR/out_napi_3.pcm >> $LOGG 11 ../Release/kenny.exe ../data/orig/bottlenecks.txt -FIXED_FL -FL 30 -MAXRATE 32000 ../data/orig/sawsweep_380_60.pcm $OUTDIR/out_napi_4.pcm >> $LOGG 12 ../Release/kenny.exe 13000 -FIXED_FL -FL 60 -MAX 100 ../data/orig/sawsweep_380_60.pcm $OUTDIR/out_napi_5.pcm >> $LOG [all...] |
/external/tinyalsa/ |
pcm.c | 0 /* pcm.c 158 struct pcm { struct 175 unsigned int pcm_get_buffer_size(struct pcm *pcm) 177 return pcm->buffer_size; 180 const char* pcm_get_error(struct pcm *pcm) 182 return pcm->error; 185 static int oops(struct pcm *pcm, int e, const char *fmt, ... 604 struct pcm *pcm; local [all...] |
tinyplay.c | 168 struct pcm *pcm; local 185 pcm = pcm_open(card, device, PCM_OUT, &config); 186 if (!pcm || !pcm_is_ready(pcm)) { 187 fprintf(stderr, "Unable to open PCM device %u (%s)\n", 188 device, pcm_get_error(pcm)); 192 size = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm)); 197 pcm_close(pcm); [all...] |
tinycap.c | 172 struct pcm *pcm; local 189 pcm = pcm_open(card, device, PCM_IN, &config); 190 if (!pcm || !pcm_is_ready(pcm)) { 191 fprintf(stderr, "Unable to open PCM device (%s)\n", 192 pcm_get_error(pcm)); 196 size = pcm_get_buffer_size(pcm); 201 pcm_close(pcm); 207 while (capturing && !pcm_read(pcm, buffer, size)) [all...] |
/external/tinyalsa/include/tinyalsa/ |
asoundlib.h | 40 * PCM API 43 struct pcm; 59 /* PCM runtime states */ 107 /* PCM parameters */ 138 struct pcm *pcm_open(unsigned int card, unsigned int device, 140 int pcm_close(struct pcm *pcm); 141 int pcm_is_ready(struct pcm *pcm); 143 /* Obtain the parameters for a PCM */ [all...] |
/hardware/qcom/audio/legacy/libalsa-intf/ |
alsa_pcm.c | 185 static int oops(struct pcm *pcm, int e, const char *fmt, ...); 329 int param_set_hw_refine(struct pcm *pcm, struct snd_pcm_hw_params *params) 331 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_HW_REFINE, params)) { 338 int param_set_hw_params(struct pcm *pcm, struct snd_pcm_hw_params *params) 340 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_HW_PARAMS, params)) { 343 pcm->hw_p = params; 347 int param_set_sw_params(struct pcm *pcm, struct snd_pcm_sw_params *sparams 759 struct pcm *pcm; local [all...] |
aplay.c | 55 {"pcm", 0, 0, 'P'}, 83 static int set_params(struct pcm *pcm) 90 unsigned int requestedRate = pcm->rate; 91 int channels = (pcm->flags & PCM_MONO) ? 1 : ((pcm->flags & PCM_5POINT1)? 6 : 2 ); 102 (pcm->flags & PCM_MMAP)? SNDRV_PCM_ACCESS_MMAP_INTERLEAVED : SNDRV_PCM_ACCESS_RW_INTERLEAVED); 103 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); 112 pcm->channels * 16); 114 pcm->channels) 167 struct pcm *pcm; local [all...] |
arec.c | 47 static struct pcm *pcm; variable in typeref:struct:pcm 59 {"pcm", 0, 0, 'P'}, 87 static int set_params(struct pcm *pcm) 94 unsigned int requestedRate = pcm->rate; 105 (pcm->flags & PCM_MMAP)? SNDRV_PCM_ACCESS_MMAP_INTERLEAVED : SNDRV_PCM_ACCESS_RW_INTERLEAVED); 106 param_set_mask(params, SNDRV_PCM_HW_PARAM_FORMAT, pcm->format); 115 pcm->channels * 16); 117 pcm->channels) [all...] |
alsa_audio.h | 24 struct pcm { struct 82 /* Acquire/release a pcm channel. 116 /** PCM */ 137 struct pcm *pcm_open(unsigned flags, char *device); 138 int pcm_close(struct pcm *pcm); 139 int pcm_ready(struct pcm *pcm); 140 int mmap_buffer(struct pcm *pcm); [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/alsa/ |
pcm_old.h | 12 int snd_pcm_hw_params_test_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val); 13 int snd_pcm_hw_params_set_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val); 14 snd_pcm_access_t snd_pcm_hw_params_set_access_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 15 snd_pcm_access_t snd_pcm_hw_params_set_access_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 16 int snd_pcm_hw_params_set_access_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask); 24 int snd_pcm_hw_params_test_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val); 25 int snd_pcm_hw_params_set_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val); 26 snd_pcm_format_t snd_pcm_hw_params_set_format_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 27 snd_pcm_format_t snd_pcm_hw_params_set_format_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 28 int snd_pcm_hw_params_set_format_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask) [all...] |
pcm.h | 2 * \file include/pcm.h 10 * See the \ref pcm page for more details. 37 * \defgroup PCM PCM Interface 38 * See the \ref pcm page for more details. 45 /** PCM generic info container */ 47 /** PCM hardware configuration space container */ 49 /** PCM software configuration container */ 51 /** PCM status container */ 53 /** PCM access types mask * [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/alsa/ |
pcm_old.h | 12 int snd_pcm_hw_params_test_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val); 13 int snd_pcm_hw_params_set_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val); 14 snd_pcm_access_t snd_pcm_hw_params_set_access_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 15 snd_pcm_access_t snd_pcm_hw_params_set_access_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 16 int snd_pcm_hw_params_set_access_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask); 24 int snd_pcm_hw_params_test_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val); 25 int snd_pcm_hw_params_set_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val); 26 snd_pcm_format_t snd_pcm_hw_params_set_format_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 27 snd_pcm_format_t snd_pcm_hw_params_set_format_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 28 int snd_pcm_hw_params_set_format_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask) [all...] |
pcm.h | 2 * \file include/pcm.h 10 * See the \ref pcm page for more details. 37 * \defgroup PCM PCM Interface 38 * See the \ref pcm page for more details. 45 /** PCM generic info container */ 47 /** PCM hardware configuration space container */ 49 /** PCM software configuration container */ 51 /** PCM status container */ 53 /** PCM access types mask * [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/alsa/ |
pcm_old.h | 12 int snd_pcm_hw_params_test_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val); 13 int snd_pcm_hw_params_set_access(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t val); 14 snd_pcm_access_t snd_pcm_hw_params_set_access_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 15 snd_pcm_access_t snd_pcm_hw_params_set_access_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 16 int snd_pcm_hw_params_set_access_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_mask_t *mask); 24 int snd_pcm_hw_params_test_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val); 25 int snd_pcm_hw_params_set_format(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val); 26 snd_pcm_format_t snd_pcm_hw_params_set_format_first(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 27 snd_pcm_format_t snd_pcm_hw_params_set_format_last(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 28 int snd_pcm_hw_params_set_format_mask(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_mask_t *mask) [all...] |
pcm.h | 2 * \file include/pcm.h 10 * See the \ref pcm page for more details. 37 * \defgroup PCM PCM Interface 38 * See the \ref pcm page for more details. 45 /** PCM generic info container */ 47 /** PCM hardware configuration space container */ 49 /** PCM software configuration container */ 51 /** PCM status container */ 53 /** PCM access types mask * [all...] |
/external/qemu/android/config/ |
check-alsa.c | 26 DYN_FUNCTION(int,snd_pcm_hw_params_current,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)) \ 27 DYN_FUNCTION(int,snd_pcm_sw_params_set_start_threshold,(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)) \ 28 DYN_FUNCTION(int,snd_pcm_sw_params,(snd_pcm_t *pcm, snd_pcm_sw_params_t *params)) \ 29 DYN_FUNCTION(int,snd_pcm_sw_params_current,(snd_pcm_t *pcm, snd_pcm_sw_params_t *params)) \ 31 DYN_FUNCTION(int,snd_pcm_hw_params_any,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)) \ 32 DYN_FUNCTION(int,snd_pcm_hw_params_set_access,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t _access)) \ 33 DYN_FUNCTION(int,snd_pcm_hw_params_set_format,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val)) \ 34 DYN_FUNCTION(int,snd_pcm_hw_params_set_rate_near,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)) \ 35 DYN_FUNCTION(int,snd_pcm_hw_params_set_channels_near,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val)) \ 36 DYN_FUNCTION(int,snd_pcm_hw_params_set_buffer_time_near,(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int *val, int *dir)) [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
AudioUsbALSA.h | 77 struct pcm *mproxyRecordingHandle; 78 struct pcm *musbRecordingHandle; 79 struct pcm *mproxyPlaybackHandle; 80 struct pcm *musbPlaybackHandle; 90 struct pcm * configureDevice(unsigned flags, char* hw, int sampleRate, int channelCount, int periodSize, bool playback); 91 status_t syncPtr(struct pcm *handle, bool *killThread); 101 status_t startDevice(pcm *handle, bool *killThread); 109 status_t setHardwareParams(pcm *local_handle, uint32_t sampleRate, uint32_t channels, int periodSize); 111 status_t setSoftwareParams(pcm *pcm, bool playback) [all...] |
/external/libvorbis/lib/ |
block.c | 13 function: PCM data vector blocking, windowing and dis/reassembly 16 Handle windowing, overlap-add, etc of the PCM vectors. This is made 44 /* pcm accumulator examples (not exhaustive): 251 v->pcm=_ogg_malloc(vi->channels*sizeof(*v->pcm)); 256 v->pcm[i]=_ogg_calloc(v->pcm_storage,sizeof(*v->pcm[i])); 368 if(v->pcm){ 371 if(v->pcm[i])_ogg_free(v->pcm[i]) 774 float *pcm=v->pcm[j]+prevCenter; local 781 float *pcm=v->pcm[j]+prevCenter+n1\/2-n0\/2; local 790 float *pcm=v->pcm[j]+prevCenter; local 799 float *pcm=v->pcm[j]+prevCenter; local 808 float *pcm=v->pcm[j]+thisCenter; local [all...] |
/cts/suite/audio_quality/lib/include/audio/ |
AudioPlaybackLocal.h | 40 struct pcm* mPcmHandle;
|
AudioRecordingLocal.h | 40 struct pcm* mPcmHandle;
|
/external/qemu/distrib/sdl-1.2.15/src/audio/alsa/ |
SDL_alsa_audio.c | 59 static int (*SDL_NAME(snd_pcm_open))(snd_pcm_t **pcm, const char *name, snd_pcm_stream_t stream, int mode); 60 static int (*SDL_NAME(snd_pcm_close))(snd_pcm_t *pcm); 61 static snd_pcm_sframes_t (*SDL_NAME(snd_pcm_writei))(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size); 62 static int (*SDL_NAME(snd_pcm_recover))(snd_pcm_t *pcm, int err, int silent); 63 static int (*SDL_NAME(snd_pcm_prepare))(snd_pcm_t *pcm); 64 static int (*SDL_NAME(snd_pcm_drain))(snd_pcm_t *pcm); 69 static int (*SDL_NAME(snd_pcm_hw_params_any))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params); 70 static int (*SDL_NAME(snd_pcm_hw_params_set_access))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t access); 71 static int (*SDL_NAME(snd_pcm_hw_params_set_format))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t val); 72 static int (*SDL_NAME(snd_pcm_hw_params_set_channels))(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val) [all...] |