Fix build with Quicktime after Audaspace update
authorDalai Felinto <dfelinto@gmail.com>
Wed, 29 Jul 2015 00:48:13 +0000 (21:48 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 29 Jul 2015 00:48:13 +0000 (21:48 -0300)
source/blender/quicktime/apple/qtkit_export.m

index 8f48f624e83d6aa07de9bcad5a9a4a47b18c9f98..af66b0db266011f11407f747a7b5ba3e42d21077 100644 (file)
@@ -335,8 +335,8 @@ static OSStatus AudioConverterInputCallback(AudioConverterRef inAudioConverter,
        
        qtexport->audioTotalExportedFrames += *ioNumberDataPackets;
        
-       AUD_readDevice(qtexport->audioInputDevice, (UInt8 *)qtexport->audioInputBuffer,
-                      qtexport->audioInputFormat.mFramesPerPacket * *ioNumberDataPackets);
+       AUD_Device_read(qtexport->audioInputDevice, (UInt8 *)qtexport->audioInputBuffer,
+                       qtexport->audioInputFormat.mFramesPerPacket * *ioNumberDataPackets);
        
        ioData->mBuffers[0].mDataByteSize = qtexport->audioInputFormat.mBytesPerPacket * *ioNumberDataPackets;
        ioData->mBuffers[0].mData = qtexport->audioInputBuffer;
@@ -792,7 +792,7 @@ void end_qt(void *context_v)
                        write_cookie(qtexport->audioConverter, qtexport->audioFile);
                        AudioConverterDispose(qtexport->audioConverter);
                        AudioFileClose(qtexport->audioFile);
-                       AUD_closeReadDevice(qtexport->audioInputDevice);
+                       AUD_Device_free(qtexport->audioInputDevice);
                        qtexport->audioFile = NULL;
                        qtexport->audioInputDevice = NULL;
                        MEM_freeN(qtexport->audioInputBuffer);