/* 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();
{
#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;