diff data/fileio/CoreAudioFileReader.cpp @ 773:2079abf4f0c1 tonioni

make a new FlexiNoteModel.h file by copying from NoteModel.h -- will need to change names therein
author matthiasm
date Tue, 26 Mar 2013 14:16:54 +0000
parents b6bb0ecb7958
children 54829c1e155e
line wrap: on
line diff
--- a/data/fileio/CoreAudioFileReader.cpp	Tue Mar 26 12:35:48 2013 +0000
+++ b/data/fileio/CoreAudioFileReader.cpp	Tue Mar 26 14:16:54 2013 +0000
@@ -88,16 +88,16 @@
 
     //!!! how do we find out if the file open fails because of DRM protection?
 
-#if (MACOSX_DEPLOYMENT_TARGET <= 1040 && MAC_OS_X_VERSION_MIN_REQUIRED <= 1040)
-    FSRef fsref;
-    if (!CFURLGetFSRef(url, &fsref)) { // returns Boolean, not error code
-        m_error = "CoreAudioReadStream: Error looking up FS ref (file not found?)";
-        return;
-    }
-    m_d->err = ExtAudioFileOpen(&fsref, &m_d->file);
-#else
+//#if (MACOSX_DEPLOYMENT_TARGET <= 1040 && MAC_OS_X_VERSION_MIN_REQUIRED <= 1040)
+//    FSRef fsref;
+//    if (!CFURLGetFSRef(url, &fsref)) { // returns Boolean, not error code
+//        m_error = "CoreAudioReadStream: Error looking up FS ref (file not found?)";
+//        return;
+//    }
+//    m_d->err = ExtAudioFileOpen(&fsref, &m_d->file);
+//#else
     m_d->err = ExtAudioFileOpenURL(url, &m_d->file);
-#endif
+//#endif
 
     CFRelease(url);