Index: media/audio/mac/audio_low_latency_output_mac.cc |
diff --git a/media/audio/mac/audio_low_latency_output_mac.cc b/media/audio/mac/audio_low_latency_output_mac.cc |
index ebf33e56ff41ae227a872953e60fa9992d7a0a76..cbef797d1926d79fbfef39b4c99cf4e735dd9d37 100644 |
--- a/media/audio/mac/audio_low_latency_output_mac.cc |
+++ b/media/audio/mac/audio_low_latency_output_mac.cc |
@@ -117,18 +117,18 @@ bool AUAudioOutputStream::Open() { |
return false; |
// Open and initialize the DefaultOutputUnit. |
- Component comp; |
- ComponentDescription desc; |
+ AudioComponent comp; |
+ AudioComponentDescription desc; |
desc.componentType = kAudioUnitType_Output; |
desc.componentSubType = kAudioUnitSubType_DefaultOutput; |
desc.componentManufacturer = kAudioUnitManufacturer_Apple; |
desc.componentFlags = 0; |
desc.componentFlagsMask = 0; |
- comp = FindNextComponent(0, &desc); |
+ comp = AudioComponentFindNext(0, &desc); |
DCHECK(comp); |
- result = OpenAComponent(comp, &output_unit_); |
+ result = AudioComponentInstanceNew(comp, &output_unit_); |
OSSTATUS_DCHECK(result == noErr, result); |
if (result) |
return false; |
@@ -193,7 +193,7 @@ bool AUAudioOutputStream::Configure() { |
void AUAudioOutputStream::Close() { |
if (output_unit_) |
- CloseComponent(output_unit_); |
+ AudioComponentInstanceDispose(output_unit_); |
// Inform the audio manager that we have been closed. This can cause our |
// destruction. |