Changeset 33872

Show
Ignore:
Timestamp:
2010-04-04 23:56:16 (2 years ago)
Author:
sunshine
Message:

Fix "cannot convert size_t to UInt32" compilation error on Snow Leopard
where size_t is now 64-bit by default rather than 32-bit. Resolves #811.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • CS/trunk/plugins/sndsys/renderer/software/drivers/coreaudio/driver_coreaudio.cpp

    r33145 r33872  
    275275    OSStatus stat = 0; 
    276276    size_t framesFilled = attached_renderer->FillDriverBuffer( convert_buffer, convert_size, 0, 0); 
    277         size_t bytesWritten = outOutputData->mBuffers[0].mDataByteSize; 
     277    UInt32 bytesWritten = outOutputData->mBuffers[0].mDataByteSize; 
    278278    stat = AudioConverterConvertBuffer(converter, framesFilled * playback_format.Bits/8 * playback_format.Channels, convert_buffer, &bytesWritten, outOutputData->mBuffers[0].mData);  
    279279    if(stat){