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

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

Issue 11338024: Handle audio device changes on Mac (Take 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Naming, comment removal. Created 8 years, 2 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 | media/audio/mac/audio_manager_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | media/audio/mac/audio_manager_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698