Commit 03f3d26a authored by rsesek@chromium.org's avatar rsesek@chromium.org

Ignore -Wdeprecated-declarations in audio_output_mac.cc.

There's already a TODO about why this is necessary and how the new API is not
sufficient.

BUG=137676
TEST=compiles


Review URL: https://chromiumcodereview.appspot.com/10802043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147979 0039d316-1c4b-4281-b951-d872f2087c98
parent d250190d
......@@ -118,6 +118,8 @@ bool PCMQueueOutAudioOutputStream::Open() {
// TODO(annacc): AudioDeviceGetPropertyInfo() is deprecated, but its
// replacement, AudioObjectGetPropertyDataSize(), doesn't work yet with
// kAudioDevicePropertyPreferredChannelLayout.
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
err = AudioDeviceGetPropertyInfo(device_id, 0, false,
kAudioDevicePropertyPreferredChannelLayout,
&core_layout_size, NULL);
......@@ -141,6 +143,7 @@ bool PCMQueueOutAudioOutputStream::Open() {
HandleError(err);
return false;
}
#pragma clang diagnostic pop
num_core_channels_ =
static_cast<int>(core_channel_layout->mNumberChannelDescriptions);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment