fix more cut-n-paste coding errors
[ardour.git] / libs / ardour / coreaudiosource.cc
index 954437173821cb6ef84b74a36d3992bdab3e27bb..48040952db05520198a126250f18826ea4daf26d 100644 (file)
@@ -85,7 +85,7 @@ CoreAudioSource::init_cafile ()
                        throw failed_constructor();
                }
 
-               _length = af.GetNumberSamples();
+               _length = af.GetNumberFrames();
 
                CAStreamBasicDescription client_format (file_format);
 
@@ -282,7 +282,7 @@ CoreAudioSource::get_soundfile_info (string path, SoundFileInfo& _info, string&)
        _info.channels   = absd.mChannelsPerFrame;
 
        size = sizeof(_info.length);
-       if (ExtAudioFileGetProperty(af, kExtAudioFileProperty_FileLengthSamples, &size, &_info.length) != noErr) {
+       if (ExtAudioFileGetProperty(af, kExtAudioFileProperty_FileLengthFrames, &size, &_info.length) != noErr) {
                goto out;
        }