diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-03-08 22:22:41 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-03-08 22:22:41 +0000 |
commit | 52089ed9fbce56ea578eb24949c1371739eb108d (patch) | |
tree | 9de9c2d283a35dd580d37baed3389ea5893ae89f /libs | |
parent | 10976e9a3becedb9ecb40e29e82c6e374ffd6a60 (diff) |
Fixed small FSRef error.
git-svn-id: svn://localhost/trunk/ardour2@360 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/coreaudio_source.cc | 6 | ||||
-rw-r--r-- | libs/ardour/sndfile_helpers.cc | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libs/ardour/coreaudio_source.cc b/libs/ardour/coreaudio_source.cc index 5579863768..9cf5318192 100644 --- a/libs/ardour/coreaudio_source.cc +++ b/libs/ardour/coreaudio_source.cc @@ -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(); diff --git a/libs/ardour/sndfile_helpers.cc b/libs/ardour/sndfile_helpers.cc index af9816c29c..64a05e4734 100644 --- a/libs/ardour/sndfile_helpers.cc +++ b/libs/ardour/sndfile_helpers.cc @@ -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; |