diff --git a/Audio/BWFFile.cpp b/Audio/BWFFile.cpp index acbf781d1..c46400394 100644 --- a/Audio/BWFFile.cpp +++ b/Audio/BWFFile.cpp @@ -289,7 +289,7 @@ bool BWFFile::impl::write_header (QAudioFormat format) fmt.audio_format = qToBigEndian (1); // PCM fmt.num_channels = qToBigEndian (format.channelCount ()); fmt.sample_rate = qToBigEndian (format.sampleRate ()); - fmt.byte_rate = qToBigEndian (format.bytesForDuration (1000)); + fmt.byte_rate = qToBigEndian (format.bytesForDuration (1000000)); fmt.block_align = qToBigEndian (format.bytesPerFrame ()); fmt.bits_per_sample = qToBigEndian (format.sampleSize ()); desc.set ("fmt", qToBigEndian (sizeof fmt)); @@ -299,7 +299,7 @@ bool BWFFile::impl::write_header (QAudioFormat format) fmt.audio_format = qToLittleEndian (1); // PCM fmt.num_channels = qToLittleEndian (format.channelCount ()); fmt.sample_rate = qToLittleEndian (format.sampleRate ()); - fmt.byte_rate = qToLittleEndian (format.bytesForDuration (1000)); + fmt.byte_rate = qToLittleEndian (format.bytesForDuration (1000000)); fmt.block_align = qToLittleEndian (format.bytesPerFrame ()); fmt.bits_per_sample = qToLittleEndian (format.sampleSize ()); desc.set ("fmt", qToLittleEndian (sizeof fmt));