--- gnuradio-3.2.2.old/gr-audio-osx/src/audio_osx_sink.cc 2009-01-21 08:04:46.000000000 -0800 +++ gnuradio-3.2.2/gr-audio-osx/src/audio_osx_sink.cc 2009-09-28 17:13:18.000000000 -0700 @@ -98,21 +98,21 @@ audio_osx_sink::audio_osx_sink (int samp OSStatus err = noErr; // Open the default output unit - ComponentDescription desc; + AudioComponentDescription desc; desc.componentType = kAudioUnitType_Output; desc.componentSubType = kAudioUnitSubType_DefaultOutput; desc.componentManufacturer = kAudioUnitManufacturer_Apple; desc.componentFlags = 0; desc.componentFlagsMask = 0; - Component comp = FindNextComponent (NULL, &desc); + AudioComponent comp = AudioComponentFindNext(NULL, &desc); if (comp == NULL) { - fprintf (stderr, "FindNextComponent Error\n"); + fprintf (stderr, "AudioComponentFindNext Error\n"); throw std::runtime_error ("audio_osx_sink::audio_osx_sink"); } - err = OpenAComponent (comp, &d_OutputAU); - CheckErrorAndThrow (err, "OpenAComponent", "audio_osx_sink::audio_osx_sink"); + err = AudioComponentInstanceNew (comp, &d_OutputAU); + CheckErrorAndThrow (err, "AudioComponentInstanceNew", "audio_osx_sink::audio_osx_sink"); // Set up a callback function to generate output to the output unit @@ -220,7 +220,7 @@ audio_osx_sink::~audio_osx_sink () // stop and close the AudioUnit stop (); AudioUnitUninitialize (d_OutputAU); - CloseComponent (d_OutputAU); + AudioComponentInstanceDispose (d_OutputAU); // empty and delete the queues for (UInt32 n = 0; n < d_n_channels; n++) {