Searched refs:sample_bytes (Results 1 – 8 of 8) sorted by relevance
/external/adhd/cras/client/cras_tests/src/ |
D | audio.rs | 153 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/ |
D | pcm_cras.c | 128 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/ |
D | shm_streams.rs | 97 let frame_size = num_channels * format.sample_bytes(); 187 frame_size: format.sample_bytes() * num_channels, in new()
|
/external/adhd/audio_streams/src/ |
D | shm_streams.rs | 243 frame_size: format.sample_bytes() * num_channels, in new() 341 frame_size: format.sample_bytes() * num_channels, in new()
|
D | audio_streams.rs | 58 pub fn sample_bytes(self) -> usize { in sample_bytes() method 326 let frame_size = format.sample_bytes() * num_channels; in new()
|
D | capture.rs | 142 let frame_size = format.sample_bytes() * num_channels; in new()
|
/external/adhd/cras/client/libcras/src/ |
D | cras_shm_stream.rs | 94 frame_size: format.sample_bytes() * num_channels, in try_new()
|
/external/adhd/sound_card_init/dsm/src/ |
D | zero_player.rs | 175 vec![0u8; Self::FRAMES_PER_BUFFER * Self::NUM_CHANNELS * Self::FORMAT.sample_bytes()]; in run()
|