/cts/suite/audio_quality/lib/src/audio/ |
AudioPlaybackLocal.cpp | 72 LOGE("Unable to open PCM device(%d) (%s)\n", mHwId, pcm_get_error(mPcmHandle)); 103 pcm_* pcm = (pcm_*)mPcmHandle; local 104 ioctl(pcm->fd, SNDRV_PCM_IOCTL_DRAIN);
|
/external/libvorbis/examples/ |
decoder_example.c | 18 /* Takes a vorbis bitstream from stdin and writes raw stereo PCM to 53 vorbis_dsp_state vd; /* central working state for the packet->PCM decoder */ 54 vorbis_block vb; /* local working space for packet->PCM decode */ 200 packet->PCM decoder. */ 227 float **pcm; local 234 **pcm is a multichannel float vector. In stereo, for 235 example, pcm[0] is left, and pcm[1] is right. samples is 237 (-1.<=range<=1.) to whatever PCM format and write it out */ 239 while((samples=vorbis_synthesis_pcmout(&vd,&pcm))>0) [all...] |
/external/libvorbis/test/ |
write_read.c | 255 float **pcm; local 260 while ((samples = vorbis_synthesis_pcmout (&vd,&pcm)) > 0 && read_total < count) { 264 memcpy (data + read_total, pcm[0], bout * sizeof (float)) ;
|
/cts/tests/tests/nativemedia/sl/src/ |
SLObjectCreationTest.cpp | 26 * * source is BufferQueue of PCM buffers 28 * * source is URI, sink is BufferQueue of PCM buffers 29 * * source is FD, sink is BufferQueue of PCM buffers 30 * * source is AndroidBufferQueue of AAC ADTS buffers, sink is BufferQueue of PCM buffers 32 * * source is IO device, sink is BufferQueue of PCM buffers 206 /* Test case for creating an AudioPlayer object that plays from a PCM BufferQueue */ 208 // source: PCM BufferQueue 212 SLDataFormat_PCM pcm; local 213 pcm.formatType = SL_DATAFORMAT_PCM; 214 pcm.numChannels = 2 [all...] |
/device/asus/fugu/libaudio/ |
AudioStreamIn.cpp | 358 struct pcm* pcm = pcm_open(deviceInfo->pcmCard, deviceInfo->pcmDevice, local 361 if (!pcm_is_ready(pcm)) { 363 pcm_close(pcm); 372 mBufferSize = pcm_frames_to_bytes(pcm, mPcmConfig.period_size); 393 pcm_close(pcm); 398 mPcm = pcm;
|
/external/libvorbis/include/vorbis/ |
codec.h | 63 float **pcm; member in struct:vorbis_dsp_state 90 float **pcm; /* this is a pointer into local storage */ member in struct:vorbis_block 156 packet back into PCM audio. 212 extern int vorbis_synthesis_pcmout(vorbis_dsp_state *v,float ***pcm); 213 extern int vorbis_synthesis_lapout(vorbis_dsp_state *v,float ***pcm);
|
/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...] |
envelope.c | 13 function: PCM data envelope analysis 227 /* make sure we have enough storage to match the PCM */ 241 float *pcm=v->pcm[i]+ve->searchstep*(j); local 242 ret|=_ve_amp(ve,gi,pcm,ve->band,ve->filter+i*VE_BANDS); 289 _analysis_output_always("pcmL",seq,v->pcm[0],v->pcm_current,0,0,totalshift); 290 _analysis_output_always("pcmR",seq,v->pcm[1],v->pcm_current,0,0,totalshift); 292 _analysis_output_always("markL",seq,v->pcm[0],j,0,0,totalshift); 293 _analysis_output_always("markR",seq,v->pcm[1],j,0,0,totalshift);
|
mapping0.c | 266 float *pcm =vb->pcm[i]; local 267 float *logfft =pcm; 290 _analysis_output("pcmL",seq,pcm,n,0,0,total-n/2); 292 _analysis_output("pcmR",seq,pcm,n,0,0,total-n/2); 294 _analysis_output("pcm",seq,pcm,n,0,0,total-n/2); 298 /* window the PCM data */ 299 _vorbis_apply_window(pcm,b->window,ci->blocksizes,vb->lW,vb->W,vb->nW); 304 _analysis_output("windowedL",seq,pcm,n,0,0,total-n/2) 791 float *pcm=vb->pcm[i]; local 801 float *pcm=vb->pcm[i]; local [all...] |
psytune.c | 242 float *pcm[2],*out[2],*window,*flr[2],*mask[2],*work[2]; local 276 pcm[0]=_ogg_malloc(framesize*sizeof(float)); 277 pcm[1]=_ogg_malloc(framesize*sizeof(float)); 314 pcm[0][i]=((buffer[i*4+1]<<8)| 316 pcm[1][i]=((buffer[i*4+3]<<8)| 330 float *mdct=pcm[i]; 333 analysis("pre",frameno+i,pcm[i],framesize,0,0); 337 fft[j]=pcm[i][j]*=window[j]; 351 mdct_forward(&m_look,pcm[i],mdct); 363 float *mdct=pcm[i] [all...] |
res0.c | 790 int *pcm=in[i]; local 793 work[k]=pcm[j];
|
vorbisfile.c | 417 /* Starting from current cursor position, get initial PCM offset of 448 /* pcm offset of last packet on the first audio page */ 551 /* for the time being, fetch end PCM offset the simple way */ 621 /* fetch initial PCM offset */ 721 /* update the pcm offset. */ 728 (above), we know the pcm position of the *last* sample 1852 float **pcm; local 2008 float **pcm; local 2105 float **pcm; local 2145 float **pcm; local 2199 float **pcm; local 2260 float **pcm; local [all...] |
/device/asus/grouper/audio/ |
audio_hw.c | 128 struct pcm *pcm; member in struct:stream_out 148 struct pcm *pcm; member in struct:stream_in 230 pcm_close(out->pcm); 231 out->pcm = NULL; 251 pcm_close(in->pcm); 252 in->pcm = NULL; 276 * (speaker/headphone) PCM or the BC SCO PCM open a [all...] |
/device/htc/flounder/audio/visualizer/ |
nv_offload_visualizer.c | 147 /* thread capturing PCM from Proxy port and calling the process function on each enabled effect 288 struct pcm *pcm = NULL; local 302 pcm = pcm_open(SOUND_CARD, CAPTURE_DEVICE, 304 if (pcm && !pcm_is_ready(pcm)) { 305 ALOGW("%s: %s", __func__, pcm_get_error(pcm)); 306 pcm_close(pcm); 307 pcm = NULL; 315 if (pcm != NULL) [all...] |
/external/bluetooth/bluedroid/btif/include/ |
btif_av_api.h | 49 #define BTIF_AV_CODEC_PCM 0x5 /* Raw PCM */ 196 tBTIF_AV_MEDIA_FEED_CFG_PCM pcm; /* Raw PCM feeding format */ member in union:__anon5622
|
/device/htc/flounder/audio/hal/ |
audio_hw.h | 129 * one frame = channel_count * sizeof (pcm sample) 130 * so if format = 16-bit PCM and channels = Stereo, frame size = 2 ch * 2 = 4 bytes 187 * Each usecase is mapped to a specific PCM device. 210 * one frame = channel_count * sizeof (pcm sample) 211 * so if format = 16-bit PCM and channels = Stereo, frame size = 2 ch * 2 = 4 bytes 255 struct pcm* pcm; member in struct:pcm_device
|
audio_hw.c | 52 /* TODO: the following PCM device profiles could be read from a config file */ 920 if (pcm_get_htimestamp(ref_device->pcm, &kernel_frames, &tstamp) < 0) { 4331 struct pcm *pcm = NULL; local [all...] |
/device/samsung/manta/audio/ |
audio_hw.c | 123 OUTPUT_DEEP_BUF, // deep PCM buffers output stream 140 struct pcm *pcm_voice_out; 141 struct pcm *pcm_sco_out; 142 struct pcm *pcm_voice_in; 143 struct pcm *pcm_sco_in; 160 struct pcm *pcm[PCM_TOTAL]; member in struct:stream_out 182 struct pcm *pcm; member in struct:stream_in 727 out->pcm[PCM_CARD] = pcm_open(PCM_CARD, out->pcm_device [all...] |
/external/bluetooth/bluedroid/btif/src/ |
btif_media_task.c | 203 /* fixme -- define this in pcm time instead of buffer count */ 250 UINT32 bytes_per_tick; /* pcm bytes read each media task tick */ 256 tBTIF_AV_MEDIA_FEEDINGS_PCM_STATE pcm; member in union:__anon5707 844 /* for now hardcode 44.1 khz 16 bit stereo PCM format */ 845 media_feeding.cfg.pcm.sampling_freq = 44100; 846 media_feeding.cfg.pcm.bit_per_sample = 16; 847 media_feeding.cfg.pcm.num_channel = 2; [all...] |