Bugzilla – Bug 1566
Incorrect error message if Nyquist returns mono sound as an array
Last modified: 2018-08-20 11:45:42 UTC
When returning sound, a mono sound should be returned as a (mono) sound object and stereo sounds as an array of two sound objects. (More than 2 channels are not currently supported). If Nyquist returns a mono sound as an array, it should throw an appropriate error: "Nyquist returned one audio channel as an array.\n" As of https://github.com/audacity/audacity/commit/67cec5ad8 Audacity incorrectly returns the error message: "Nyquist returned too many audio channels.\n" The error message as now is confusing and incorrect (only one channel is returned, which is not "too many"). This bug is due to incorrectly declaring mCurNumChannels as unsigned. It needs to be a signed integer because nyx_get_audio_num_channels may return a negative value. (It also causes multiple compiler warnings). Assigned to myself.
DEVEL-FIXMADE https://github.com/audacity/audacity/commit/81dd23bd16ca17d51f978b37843b08fa2c9e9f74
(In reply to James Crook from comment #1) Testing on 10 06Aug nightly and macOS 10Aug nightly on both platforms the "correct" message as specified by Steve in Comment #0 is displayed. Looks to be fixed on thses platforms