Audacity exported WAV file, RIFF format issue

Effects, Recipes, Interfacing with other software, etc.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
dmillar01
Posts: 2
Joined: Mon Mar 02, 2015 5:44 am
Operating System: Please select

Audacity exported WAV file, RIFF format issue

Post by dmillar01 » Mon Mar 02, 2015 6:22 am

I exported a WAV file (44100 samples/sec, 2 Bytes/sample, 1 channel, 1226752 samples) from Audacity. I have written software that reads WAV files and it gave me a warning that there are 180 unused bytes at the end of this file. The file contains a RIFF header, one fmt chunk, one data chunk, and 180 unused bytes. The unused Bytes do not appear to be chunks. The RIFF header indicates a file size that includes the unused bytes. The DOS file size agrees with the RIFF header. This is probably not a big issue, but I just spent hours looking for any bugs in my software. Does anyone know if these extra, unused Bytes violate the WAV standard? Wikipedia says the WAV standard is a bit fuzzy.

kozikowski
Forum Staff
Posts: 68937
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Audacity exported WAV file, RIFF format issue

Post by kozikowski » Tue Mar 03, 2015 5:35 am

Scientists and detail oriented people are frequently disappointed with Audacity. Audacity is not a WAV editor. It's a production editor and sometimes technical accuracy takes a back seat to making the show sound good.

Koz

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Audacity exported WAV file, RIFF format issue

Post by Gale Andrews » Tue Mar 03, 2015 4:22 pm

dmillar01 wrote:I exported a WAV file (44100 samples/sec, 2 Bytes/sample, 1 channel, 1226752 samples) from Audacity.
You're saying that. Audacity calls 2 Bytes/sample "16-bit".

Which version of Audacity are you using? Exactly what choices did you use when you exported?
dmillar01 wrote:I have written software that reads WAV files and it gave me a warning that there are 180 unused bytes at the end of this file. The file contains a RIFF header, one fmt chunk, one data chunk, and 180 unused bytes. The unused Bytes do not appear to be chunks. The RIFF header indicates a file size that includes the unused bytes. The DOS file size agrees with the RIFF header. This is probably not a big issue, but I just spent hours looking for any bugs in my software. Does anyone know if these extra, unused Bytes violate the WAV standard? Wikipedia says the WAV standard is a bit fuzzy.
I don't know much about this but did you export metadata with the file? What happens if you download sample WAV files from the internet and look at those in your app?


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply