/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, ... 611 struct pcm *pcm; local [all...] |
tinycap.c | 189 struct pcm *pcm; local 203 pcm = pcm_open(card, device, PCM_IN, &config); 204 if (!pcm || !pcm_is_ready(pcm)) { 205 fprintf(stderr, "Unable to open PCM device (%s)\n", 206 pcm_get_error(pcm)); 210 size = pcm_frames_to_bytes(pcm, pcm_get_buffer_size(pcm)); 215 pcm_close(pcm); [all...] |
/external/tinyalsa/include/tinyalsa/ |
asoundlib.h | 40 * PCM API 43 struct pcm; 60 /* PCM runtime states */ 108 /* PCM parameters */ 139 struct pcm *pcm_open(unsigned int card, unsigned int device, 141 int pcm_close(struct pcm *pcm); 142 int pcm_is_ready(struct pcm *pcm); 144 /* 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;
|
/hardware/qcom/audio/hal/ |
audio_hw.h | 47 * Each usecase is mapped to a specific PCM device. 70 * one frame = channel_count * sizeof (pcm sample) 71 * so if format = 16-bit PCM and channels = Stereo, frame size = 2 ch * 2 = 4 bytes 102 struct pcm *pcm; member in struct:stream_out 138 struct pcm *pcm; member in struct:stream_in 185 struct pcm *voice_call_rx; 186 struct pcm *voice_call_tx;
|
/external/chromium_org/third_party/opus/src/include/ |
opus_custom.h | 180 * @param [in] pcm <tt>float*</tt>: PCM audio in float format, with a normal range of +/-1.0. 187 * @param [out] compressed <tt>char *</tt>: The compressed data is written here. This may not alias pcm and must be at least maxCompressedBytes long. 197 const float *pcm, 205 * @param [in] pcm <tt>opus_int16*</tt>: PCM audio in signed 16-bit format (native endian). 208 * @param [out] compressed <tt>char *</tt>: The compressed data is written here. This may not alias pcm and must be at least maxCompressedBytes long. 218 const opus_int16 *pcm, 285 * @param [out] pcm <tt>float*</tt>: Output signal (interleaved if 2 channels). length 287 * @param [in] frame_size Number of samples per channel of available space in *pcm [all...] |