Home
last modified time | relevance | path

Searched refs:sample_bytes (Results 1 – 8 of 8) sorted by relevance

/external/adhd/cras/client/cras_tests/src/
Daudio.rs153 let frame_size = self.format.sample_bytes() * self.num_channels; in read()
155 let num_samples = read_len / self.format.sample_bytes(); in read()
170 Ok(()) => read += self.format.sample_bytes(), in read()
227 let frame_size = num_channels * format.sample_bytes(); in playback()
256 bits_per_sample: (format.sample_bytes() * 8) as u16, in try_new()
266 let sample_bytes = self.format.sample_bytes(); in write() localVariable
267 if samples.len() % sample_bytes != 0 { in write()
277 let num_samples = samples.len() / sample_bytes; in write()
294 samples[sample_bytes * i], in write()
295 samples[sample_bytes * i + 1], in write()
[all …]
/external/adhd/cras/src/alsa_plugin/
Dpcm_cras.c128 size_t chan, frame_bytes, sample_bytes; in pcm_cras_process_cb() local
139 sample_bytes = snd_pcm_format_physical_width(io->format) / 8; in pcm_cras_process_cb()
164 pcm_cras->areas[chan].addr = samples + chan * sample_bytes; in pcm_cras_process_cb()
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_streams.rs97 let frame_size = num_channels * format.sample_bytes();
187 frame_size: format.sample_bytes() * num_channels, in new()
/external/adhd/audio_streams/src/
Dshm_streams.rs243 frame_size: format.sample_bytes() * num_channels, in new()
341 frame_size: format.sample_bytes() * num_channels, in new()
Daudio_streams.rs58 pub fn sample_bytes(self) -> usize { in sample_bytes() method
326 let frame_size = format.sample_bytes() * num_channels; in new()
Dcapture.rs142 let frame_size = format.sample_bytes() * num_channels; in new()
/external/adhd/cras/client/libcras/src/
Dcras_shm_stream.rs94 frame_size: format.sample_bytes() * num_channels, in try_new()
/external/adhd/sound_card_init/dsm/src/
Dzero_player.rs175 vec![0u8; Self::FRAMES_PER_BUFFER * Self::NUM_CHANNELS * Self::FORMAT.sample_bytes()]; in run()