Home | History | Annotate | Download | only in src

Lines Matching defs:pcm

183 /* fixme -- define this in pcm time instead of buffer count */
211 tBTIF_AV_MEDIA_FEEDINGS_PCM_STATE pcm;
767 media_feeding.cfg.pcm.sampling_freq = 44100;
768 media_feeding.cfg.pcm.bit_per_sample = 16;
769 media_feeding.cfg.pcm.num_channel = 2;
986 /* calculate corresponding pcm time based on data processed */
991 (p_cfg->pcm.num_channel*p_cfg->pcm.sampling_freq*p_cfg->pcm.bit_per_sample/8);
1080 ** event when the waveIn interface has a pcm data buffer
1081 ** ready. On receiving the event, handle all ready pcm
1083 ** on each chunk of pcm samples and build an output packet
1449 /* Default transcoding is PCM to SBC, modified by feeding configuration */
1608 ** Description Init encoding task for PCM to SBC according to feeding
1617 APPL_TRACE_DEBUG0("PCM feeding:");
1618 APPL_TRACE_DEBUG1("sampling_freq:%d", p_feeding->feeding.cfg.pcm.sampling_freq);
1619 APPL_TRACE_DEBUG1("num_channel:%d", p_feeding->feeding.cfg.pcm.num_channel);
1620 APPL_TRACE_DEBUG1("bit_per_sample:%d", p_feeding->feeding.cfg.pcm.bit_per_sample);
1622 /* Check the PCM feeding sampling_freq */
1623 pcm.sampling_freq)
1654 APPL_TRACE_DEBUG0("Feeding PCM sampling_freq unsupported");
1833 (btif_media_cb.media_feeding_state.pcm.aa_frame_counter++ % 2) == 0)
1849 (btif_media_cb.media_feeding_state.pcm.aa_frame_counter++ % 2) == 0)
1861 (btif_media_cb.media_feeding_state.pcm.aa_frame_counter++ % 64) < 7)
1951 /* Some Feeding PCM frequencies require to split the number of sample */
1955 switch (btif_media_cb.media_feeding.cfg.pcm.sampling_freq)
1972 src_samples *= btif_media_cb.media_feeding.cfg.pcm.sampling_freq;
1978 if (btif_media_cb.media_feeding_state.pcm.aa_feed_counter <= fract_threshold)
1984 btif_media_cb.media_feeding_state.pcm.aa_feed_counter++; /* one more read */
1985 if (btif_media_cb.media_feeding_state.pcm.aa_feed_counter > fract_max)
1987 btif_media_cb.media_feeding_state.pcm.aa_feed_counter = 0;
1993 read_size *= btif_media_cb.media_feeding.cfg.pcm.num_channel;
1994 read_size *= (btif_media_cb.media_feeding.cfg.pcm.bit_per_sample / 8);
2017 /* Initialize PCM up-sampling engine */
2018 bta_av_sbc_init_up_sample(btif_media_cb.media_feeding.cfg.pcm.sampling_freq,
2019 sbc_sampling, btif_media_cb.media_feeding.cfg.pcm.bit_per_sample,
2020 btif_media_cb.media_feeding.cfg.pcm.num_channel);
2023 /* The output PCM buffer will be stereo, 16 bit per sample */
2025 (UINT8 *)up_sampled_buffer + btif_media_cb.media_feeding_state.pcm.aa_feed_residue,
2027 sizeof(up_sampled_buffer) - btif_media_cb.media_feeding_state.pcm.aa_feed_residue,
2036 btif_media_cb.media_feeding_state.pcm.aa_feed_residue += dst_size_used;
2038 /* only copy the pcm sample when we have up-sampled enough PCM */
2039 if(btif_media_cb.media_feeding_state.pcm.aa_feed_residue >= bytes_needed)
2041 /* Copy the output pcm samples in SBC encoding buffer */
2046 btif_media_cb.media_feeding_state.pcm.aa_feed_residue -= bytes_needed;
2048 if (btif_media_cb.media_feeding_state.pcm.aa_feed_residue != 0)
2052 btif_media_cb.media_feeding_state.pcm.aa_feed_residue);
2059 btif_media_cb.media_feeding_state.pcm.aa_feed_residue, dst_size_used, bytes_needed);
2106 /* Read PCM data and upsample them if needed */
2120 /* no more pcm to read */
2234 /* disable rate scaling for pcm carkit */
2239 BTIF_TRACE_WARNING0("detected pcm carkit, disable rate scaling");