src/media/audio/drivers/test/admin_test.cc
// For the channelization and sample_format that we've set, determine the size of each frame.
// This method assumes that SetFormat has already been sent to the driver.
For the channelization and sample_format that we've set, determine the size of each frame.
This method assumes that SetFormat has already been sent to the driver.
For the channelization and sample_format that we ' ve set determine the size of each frame . This method assumes that SetFormat has already been sent to the driver .
void AdminTest::CalculateFrameSize() {
  if (!format_is_set_) {
    return;
  }
  EXPECT_LE(pcm_format_.valid_bits_per_sample, pcm_format_.bytes_per_sample * 8);
  frame_size_ = pcm_format_.number_of_channels * pcm_format_.bytes_per_sample;
}
void AdminTest :: CalculateFrameSize ( ) { if ( ! format_is_set_ ) { return ; } EXPECT_LE ( pcm_format_ . valid_bits_per_sample , pcm_format_ . bytes_per_sample * 8 ) ; frame_size_ = pcm_format_ . number_of_channels * pcm_format_ . bytes_per_sample ; }
For the channelization and sample_format that we've set, determine the size of each frame.
For the channelization and sample_format that we ' ve set determine the size of each frame .