Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(333)

Unified Diff: media/audio/mac/audio_output_mac.cc

Issue 10802043: Ignore -Wdeprecated-declarations in audio_output_mac.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mac/audio_output_mac.cc
diff --git a/media/audio/mac/audio_output_mac.cc b/media/audio/mac/audio_output_mac.cc
index 143d1084cce377bb3f837f4d77f178972b670e1d..b0784ebe6a776042051fec1bedd95e22b7aec7d2 100644
--- a/media/audio/mac/audio_output_mac.cc
+++ b/media/audio/mac/audio_output_mac.cc
@@ -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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698