diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 18:55:21 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-26 18:55:21 +0000 |
commit | b410dca24a74f7f3656f77112899eb4c61c989ad (patch) | |
tree | e35ecc53ba139787935f971e8bded320d6bfa53f /media/audio/mac | |
parent | 0aaa52814089919103ffa3fee8081e5124c63875 (diff) | |
download | chromium_src-b410dca24a74f7f3656f77112899eb4c61c989ad.zip chromium_src-b410dca24a74f7f3656f77112899eb4c61c989ad.tar.gz chromium_src-b410dca24a74f7f3656f77112899eb4c61c989ad.tar.bz2 |
Switch from DLOG(INFO) to DVLOG(1) for media/audio/mac/audio_low_latency_input_mac.cc
Review URL: http://codereview.chromium.org/8393029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107404 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/mac')
-rw-r--r-- | media/audio/mac/audio_low_latency_input_mac.cc | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/media/audio/mac/audio_low_latency_input_mac.cc b/media/audio/mac/audio_low_latency_input_mac.cc index 1c25f6c..39bac9b 100644 --- a/media/audio/mac/audio_low_latency_input_mac.cc +++ b/media/audio/mac/audio_low_latency_input_mac.cc @@ -11,15 +11,17 @@ #include "media/audio/audio_util.h" #include "media/audio/mac/audio_manager_mac.h" -static void DLogFormat(const AudioStreamBasicDescription& format) { - DLOG(INFO) << " sample rate : " << format.mSampleRate << std::endl - << " format ID : " << format.mFormatID << std::endl - << " format flags : " << format.mFormatFlags << std::endl - << " bytes per packet : " << format.mBytesPerPacket << std::endl - << " frames per packet : " << format.mFramesPerPacket << std::endl - << " bytes per frame : " << format.mBytesPerFrame << std::endl - << " channels per frame: " << format.mChannelsPerFrame << std::endl - << " bits per channel : " << format.mBitsPerChannel; +static std::ostream& operator<<(std::ostream& os, + const AudioStreamBasicDescription& format) { + os << "sample rate : " << format.mSampleRate << std::endl + << "format ID : " << format.mFormatID << std::endl + << "format flags : " << format.mFormatFlags << std::endl + << "bytes per packet : " << format.mBytesPerPacket << std::endl + << "frames per packet : " << format.mFramesPerPacket << std::endl + << "bytes per frame : " << format.mBytesPerFrame << std::endl + << "channels per frame: " << format.mChannelsPerFrame << std::endl + << "bits per channel : " << format.mBitsPerChannel; + return os; } // See "Technical Note TN2091 - Device input using the HAL Output Audio Unit" @@ -47,16 +49,15 @@ AUAudioInputStream::AUAudioInputStream( format_.mBytesPerFrame = format_.mBytesPerPacket; format_.mReserved = 0; - DLOG(INFO) << "Desired ouput format:"; - DLogFormat(format_); + DVLOG(1) << "Desired ouput format: " << format_; // Calculate the number of sample frames per callback. number_of_frames_ = params.GetPacketSize() / format_.mBytesPerPacket; - DLOG(INFO) << "Number of frames per callback: " << number_of_frames_; + DVLOG(1) << "Number of frames per callback: " << number_of_frames_; // Derive size (in bytes) of the buffers that we will render to. UInt32 data_byte_size = number_of_frames_ * format_.mBytesPerFrame; - DLOG(INFO) << "Size of data buffer in bytes : " << data_byte_size; + DVLOG(1) << "Size of data buffer in bytes : " << data_byte_size; // Allocate AudioBuffers to be used as storage for the received audio. // The AudioBufferList structure works as a placeholder for the |