Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 1315 - AIFF extension always added for Other uncompressed files (or for any export format on Linux) after saving project or importing file
AIFF extension always added for Other uncompressed files (or for any export f...
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Formats
2.1.2
Per OS All
: P3 Repeatable
Assigned To: Default Assignee for New Bugs
: wx3
: 1225 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-26 15:17 UTC by Steve Daulton
Modified: 2018-08-20 11:51 UTC (History)
6 users (show)

See Also:
Steps To Reproduce:
1 On Windows or Mac, launch Audacity. 2 Generate some audio, then File > Save Other > Export Audio... . Choose "Other uncompressed files" and WAV header, saving as for example "test123" (without quotes) which exports "test123.wav". 3 Save the project as "test123", and complete the save. 4 File > Other > Export Audio... . The file name says "test123.aiff" despite WAV header is selected. 5 Cancel and close the project to open a new empty project. 6 Import "test123.wav" then File > Export Audio... . The file name says "test123.aiff" despite WAV header is selected. WAV file extension will be forced if you export, due to the fix for bug 1217. 7 On Linux, omit step 2. When you save a project or import any audio file type, export offers you .aiff extension regardless of the save as type selected, e.g. even if the filter is already set to MP3. If the filter is other than "Other uncompressed files", then the exported extension is incorrect but the encoding is still correct.
Release Note:
GROUP: Imports and Exports * '''After saving a project or importing audio, export always offers .aiff extension if you choose "Other uncompressed files", even if you choose other than AIFF header.''' ** You can change or remove the extension in the export dialogue, or if you leave the extension unchanged, the extension of the exported file will be changed automatically to the correct default for the chosen header. ** On Linux, .aiff extension will be offered after project save or audio import for all formats, not just for "Other uncompressed files". For other than "Other uncompressed files", the extension will be wrongly exported as AIFF unless you change or remove the extension, but the encoded data will still be correct.
First Git SHA:
Group: ---
Workaround:
Closed: 2018-08-20 00:00:00
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+
stevethefiddle: Test‑OK‑Lin+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Daulton 2016-01-26 15:17:06 UTC
1) Launch Audacity
2) Generate some audio
3) Save the project, for example as "test123", and complete the save.
4) "File > Export Audio"
by default the export format is WAV (Microsoft) signed 16-bit PCM but the file name says "test123.aiff"

If the defaults are accepted, a warning message is shown:

"You are about to export a WAV file with the name "test123.aiff".

Normally these files end in ".wav", and some programs will not open files with nonstandard extensions.

Are you sure you want to export the file under this name?"
Comment 1 Peter Sampson 2016-01-27 08:08:50 UTC
This does not happen on W10 with audacity-win-r17c9369-2.1.3-alpha-26-jan-16

And to test this with a clean Audacity I cleared out my .cfg files etc. from the ... Roaming>Audacity folder.

The default export showed correctly as 16-bit WAV and the extension on the file was .wav

----------------------------------------

But I note that if you select "Other incompressed Files" the default there is WAV but the file extension is .aiff

And if you change the Geader to anything else the file extension remains as .aiff

Surely this is incorrect behavior
Comment 2 Peter Sampson 2016-01-27 08:20:03 UTC
(In reply to Peter Sampson from comment #1)
My secondary comment appears to be a duplication of Bug #1217
Comment 3 Paul L 2016-02-01 08:17:03 UTC
I think this is related to Bug 1225 which I claim was probably fixed together with Bug 1217.  Steve, please verify.
Comment 4 Steve Daulton 2016-02-02 06:58:05 UTC
(In reply to Paul L from comment #3)
Unfortunately the steps described in comment 1 still produce the same error.
Marked bug as REOPENED.
Comment 5 Peter Sampson 2016-02-02 07:25:15 UTC
Tested on W10 on audacity-win-ra0d78b9-2.1.3-alpha-02-feb-16

Still works absolutely fine on W10 - the deafult forwat is 16-bit wav and the offered (and used) filename is test123.wav.
Comment 6 Gale Andrews 2016-02-07 19:38:53 UTC
Confirmed does not occur on Mac. I do see this on Ubuntu 14.04.  

Added wx3 keyword because I believe wx 2.8 was not affected.

The bug is a little more prevalent than the title suggests so promoted to P3 and changed title and added release note.
Comment 7 Gale Andrews 2016-03-11 23:30:24 UTC
This is actually a duplicate of bug 1225 except that I added here that Save Project or anything else that populates the name will also trigger the bug. 

The original bug 1225 was P2, this was P3. I guess P3 is just about OK.
Comment 8 Gale Andrews 2016-03-11 23:31:17 UTC
*** Bug 1225 has been marked as a duplicate of this bug. ***
Comment 9 Gale Andrews 2016-09-30 13:03:24 UTC
This bug is actually cross-platform. The platform difference is that on Windows and Mac you must export as "Other uncompressed files" to trigger the bug, but on Linux any export format will trigger the bug. 

Bug title, Steps and Release Note updated.
Comment 10 Paul L 2017-07-22 14:45:45 UTC
Fix adapted from suggestion of one Bobby Kent who emailed it to Vaughan.

https://github.com/audacity/audacity/commit/7ced70c2101fadcf1ff981beec01c7bfbbdb2e99
Comment 11 Cliff Scott 2017-07-22 15:45:46 UTC
Hmmm... On MacOS 10.12.5 it still occurs at step 4 in the Steps to Reproduce. Cancel the export and the file dialog returns with the correct extension appended.
Comment 12 Cliff Scott 2017-07-22 15:47:57 UTC
Meant to add to my previous comment that even though the wrong file extension is displayed if the export is completed it does export as a .wav file which it did even before the fix was made.
Comment 13 Bill Wharrie 2017-08-17 15:06:41 UTC
Tested with 2.2.0-alpha Aug 15 on Mac 10.11.4

At steps 4 and 6 the correct (.wav) extension is shown in the "Save As" field.
Comment 14 Peter Sampson 2017-08-21 13:10:03 UTC
(In reply to Bill Wharrie from comment #13)
Also tests ok (all steps) on W10 audacity-win-e984211-2.2.0-alpha-21aug17

so flagging as such - and similarly flagging ok on Mac due to Bill's comment #13
Comment 15 Steve Daulton 2017-08-31 13:35:36 UTC
Works for me against all the steps to reproduce.
I've not tested every conceivable permutation, but if there are residual issues it can be logged as a new bug.
Resolved FIXED.