| @@ -58,6 +58,7 @@ public: | |||||
| ok (false), lastReadPosition (0) | ok (false), lastReadPosition (0) | ||||
| { | { | ||||
| usesFloatingPointData = true; | usesFloatingPointData = true; | ||||
| bitsPerSample = 32; | |||||
| OSStatus status = AudioFileOpenWithCallbacks (this, | OSStatus status = AudioFileOpenWithCallbacks (this, | ||||
| &readCallback, | &readCallback, | ||||
| @@ -79,9 +80,8 @@ public: | |||||
| &audioStreamBasicDescriptionSize, | &audioStreamBasicDescriptionSize, | ||||
| &sourceAudioFormat); | &sourceAudioFormat); | ||||
| numChannels = sourceAudioFormat.mChannelsPerFrame; | |||||
| sampleRate = sourceAudioFormat.mSampleRate; | |||||
| bitsPerSample = sourceAudioFormat.mBitsPerChannel; | |||||
| numChannels = sourceAudioFormat.mChannelsPerFrame; | |||||
| sampleRate = sourceAudioFormat.mSampleRate; | |||||
| UInt32 sizeOfLengthProperty = sizeof (int64); | UInt32 sizeOfLengthProperty = sizeof (int64); | ||||
| ExtAudioFileGetProperty (audioFileRef, | ExtAudioFileGetProperty (audioFileRef, | ||||