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.cc188 int bytes_per_sample; in calc_audiotime_usec() local
192 bytes_per_sample = 1; in calc_audiotime_usec()
195 bytes_per_sample = 2; in calc_audiotime_usec()
198 bytes_per_sample = 3; in calc_audiotime_usec()
201 bytes_per_sample = 4; in calc_audiotime_usec()
204 bytes_per_sample = 4; in calc_audiotime_usec()
208 bytes_per_sample = 2; in calc_audiotime_usec()
213 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.cc204 int bytes_per_sample; in calc_audiotime_usec() local
208 bytes_per_sample = 1; in calc_audiotime_usec()
211 bytes_per_sample = 2; in calc_audiotime_usec()
214 bytes_per_sample = 3; in calc_audiotime_usec()
217 bytes_per_sample = 4; in calc_audiotime_usec()
220 bytes_per_sample = 4; in calc_audiotime_usec()
224 bytes_per_sample = 2; in calc_audiotime_usec()
229 int)(((int64_t)bytes * (USEC_PER_SEC / (chan_count * bytes_per_sample))) / in calc_audiotime_usec()