Fixed small FSRef error.
authorTaybin Rutkin <taybin@taybin.com>
Wed, 8 Mar 2006 22:22:41 +0000 (22:22 +0000)
committerTaybin Rutkin <taybin@taybin.com>
Wed, 8 Mar 2006 22:22:41 +0000 (22:22 +0000)
git-svn-id: svn://localhost/trunk/ardour2@360 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/coreaudio_source.cc
libs/ardour/sndfile_helpers.cc

index 557986376888fa49017261670faa20de450c9efe..9cf5318192164b3c92deb9efd261e3d0cbc01171 100644 (file)
@@ -75,13 +75,13 @@ CoreAudioSource::init (const string& idstr, bool build_peak)
 
 
        /* note that we temporarily truncated _id at the colon */
-       FSRef* ref;
-       err = FSPathMakeRef ((UInt8*)file.c_str(), ref, 0);
+       FSRef ref;
+       err = FSPathMakeRef ((UInt8*)file.c_str(), &ref, 0);
        if (err != noErr) {
                throw failed_constructor();
        }
 
-       err = ExtAudioFileOpen (ref, &af);
+       err = ExtAudioFileOpen (&ref, &af);
        if (err != noErr) {
                ExtAudioFileDispose (af);
                throw failed_constructor();
index af9816c29cc6c9069363e3b19598bb40e974c6ad..64a05e47340de589ab0c4cdc48bb34ed2c9e53ad 100644 (file)
@@ -221,18 +221,18 @@ get_soundfile_info (string path, SoundFileInfo& _info)
 {
 #ifdef HAVE_COREAUDIO
        OSStatus err = noErr;
-    FSRef* ref; 
+    FSRef ref; 
        ExtAudioFileRef af = 0;
        size_t size;
     CFStringRef name;
 
-    err = FSPathMakeRef ((UInt8*)path.c_str(), ref, 0);
+    err = FSPathMakeRef ((UInt8*)path.c_str(), &ref, 0);
        if (err != noErr) {
         ExtAudioFileDispose (af);
                goto libsndfile;
        }
 
-       err = ExtAudioFileOpen(ref, &af);
+       err = ExtAudioFileOpen(&ref, &af);
        if (err != noErr) {
         ExtAudioFileDispose (af);
                goto libsndfile;