Ticket #811 (closed defect: fixed)
driver_coreaudio.cpp fails to compile on Mac OS X 10.6
| Reported by: | eduardop | Owned by: | sunshine |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | sound | Version: | V1.9 |
| Keywords: | Cc: |
Description (last modified by sunshine) (diff)
In OS X 10.6 the compiler errors out complaining that it cannot convert size_t* to UInt32* on parameter 4 of the function below. The fix shown below makes it work.
- stat = AudioConverterConvertBuffer(converter, framesFilled * playback_format.Bits/8 * playback_format.Channels, convert_buffer, &bytesWritten, outOutputData->mBuffers[0].mData); + stat = AudioConverterConvertBuffer(converter, framesFilled * playback_format.Bits/8 * playback_format.Channels, convert_buffer, (UInt32*)&bytesWritten, outOutputData->mBuffers[0].mData);
Change History
Note: See
TracTickets for help on using
tickets.
