From 3e1ee0a500bd0b513db4bdf18a9cb052f42404d4 Mon Sep 17 00:00:00 2001 From: msheby Date: Fri, 1 Feb 2008 00:42:18 +0000 Subject: Commit a bunch of portability fixes (64- vs. 32-bit types). --- src/Wav.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Wav.cpp') diff --git a/src/Wav.cpp b/src/Wav.cpp index 2cfd73f..9fb2423 100755 --- a/src/Wav.cpp +++ b/src/Wav.cpp @@ -265,7 +265,7 @@ ASDCP::AIFF::SimpleAIFFHeader::FillADesc(ASDCP::PCM::AudioDescriptor& ADesc, ASD ADesc.AudioSamplingRate = extended_to_Rat(sampleRate); ADesc.QuantizationBits = sampleSize; ADesc.BlockAlign = sampleSize / 8; - ADesc.AvgBps = ADesc.BlockAlign * ADesc.AudioSamplingRate.Quotient(); + ADesc.AvgBps = (ui32_t) (ADesc.BlockAlign * ADesc.AudioSamplingRate.Quotient()); ui32_t FrameBufferSize = ASDCP::PCM::CalcFrameBufferSize(ADesc); ADesc.ContainerDuration = data_len / FrameBufferSize; } -- cgit v1.2.3