Searched refs:bytes_per_sample (Results 1 – 6 of 6) sorted by relevance
152 const int bytes_per_sample = bit_depth / 8; in transcode() local179 for (int i = 0; i < i_len / bytes_per_sample; ++i) { in transcode()181 buff += bytes_per_sample; in transcode()
218 int bytes_per_sample; in calc_audiotime_usec() local222 bytes_per_sample = 1; in calc_audiotime_usec()225 bytes_per_sample = 2; in calc_audiotime_usec()228 bytes_per_sample = 3; in calc_audiotime_usec()231 bytes_per_sample = 4; in calc_audiotime_usec()234 bytes_per_sample = 4; in calc_audiotime_usec()238 bytes_per_sample = 2; in calc_audiotime_usec()243 int)(((int64_t)bytes * (USEC_PER_SEC / (chan_count * bytes_per_sample))) / in calc_audiotime_usec()
212 int bytes_per_sample; in calc_audiotime_usec() local216 bytes_per_sample = 1; in calc_audiotime_usec()219 bytes_per_sample = 2; in calc_audiotime_usec()222 bytes_per_sample = 3; in calc_audiotime_usec()225 bytes_per_sample = 4; in calc_audiotime_usec()228 bytes_per_sample = 4; in calc_audiotime_usec()232 bytes_per_sample = 2; in calc_audiotime_usec()237 int)(((int64_t)bytes * (USEC_PER_SEC / (chan_count * bytes_per_sample))) / in calc_audiotime_usec()
210 int bytes_per_sample = (source_codec_config_.bits_per_sample == 24) in SendAudioData() local215 source_codec_config_.data_interval_us / 1000 * bytes_per_sample) / in SendAudioData()
3343 int bytes_per_sample, size_t frames) { in mono_blend() argument3345 mono_out.resize(frames * bytes_per_sample); in mono_blend()3347 if (bytes_per_sample == 2) { in mono_blend()3357 } else if (bytes_per_sample == 4) { in mono_blend()3368 log::error("Don't know how to mono blend that {}!", bytes_per_sample); in mono_blend()3381 uint8_t bytes_per_sample = sw_enc_left->GetNumOfBytesPerSample(); in PrepareAndSendToTwoCises() local3382 if (data.size() < bytes_per_sample * 2 /* channels */ * in PrepareAndSendToTwoCises()3385 bytes_per_sample * 2 * number_of_required_samples_per_channel); in PrepareAndSendToTwoCises()3402 data, bytes_per_sample, number_of_required_samples_per_channel); in PrepareAndSendToTwoCises()3412 sw_enc_right->Encode(data.data() + bytes_per_sample, 2, byte_count); in PrepareAndSendToTwoCises()[all …]
1207 const auto bytes_per_sample = (subgroup_config.GetBitsPerSample() / 8); in OnAudioDataReady() local1211 auto initial_channel_offset = bis_idx * bytes_per_sample; in OnAudioDataReady()