Home
last modified time | relevance | path

Searched refs:bytes_per_sample (Results 1 – 3 of 3) sorted by relevance

/system/media/audio_utils/
DPowerLog.cpp68 const size_t bytes_per_sample = audio_bytes_per_sample(mFormat); in log() local
106 buffer = (const uint8_t *)buffer + mCurrentFrames * mChannelCount * bytes_per_sample; in log()
/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc189 int bytes_per_sample; in calc_audiotime_usec() local
193 bytes_per_sample = 1; in calc_audiotime_usec()
196 bytes_per_sample = 2; in calc_audiotime_usec()
199 bytes_per_sample = 3; in calc_audiotime_usec()
202 bytes_per_sample = 4; in calc_audiotime_usec()
205 bytes_per_sample = 4; in calc_audiotime_usec()
209 bytes_per_sample = 2; in calc_audiotime_usec()
214 int)(((int64_t)bytes * (USEC_PER_SEC / (chan_count * bytes_per_sample))) / in calc_audiotime_usec()
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc205 int bytes_per_sample; in calc_audiotime_usec() local
209 bytes_per_sample = 1; in calc_audiotime_usec()
212 bytes_per_sample = 2; in calc_audiotime_usec()
215 bytes_per_sample = 3; in calc_audiotime_usec()
218 bytes_per_sample = 4; in calc_audiotime_usec()
221 bytes_per_sample = 4; in calc_audiotime_usec()
225 bytes_per_sample = 2; in calc_audiotime_usec()
230 int)(((int64_t)bytes * (USEC_PER_SEC / (chan_count * bytes_per_sample))) / in calc_audiotime_usec()