bugGNU Octave - Bugs: bug #36845, wavread() to support 0xFFFE format...

 
 

bug #36845: wavread() to support 0xFFFE format chunks

Submitter:  None
Submitted:  Fri 13 Jul 2012 06:22:07 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Fixed Assigned to:  None
Originator Name:  Keith W. Godin Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 21 Feb 2015 05:32:49 PM UTC, comment #3: 

The wavread function is now a wrapper around audioread, and the attached file can be read properly with wavread now. Closing as fixed.

Mike Miller <mtmiller>
Group Member
Mon 12 Jan 2015 02:33:15 AM UTC, comment #2: 

The attached file can be read into Octave now with the new audioread function. The wavread function does not handle it yet, but wavread should probably be rewritten now to be a wrapper around audioread.

Mike Miller <mtmiller>
Group Member
Sun 19 Jan 2014 08:37:03 PM UTC, comment #1: 

Confirmd, still a problem with wavread in the development version of Octave. There was work done recently to open audio files with libsndfile. Once that work is merged into the development Octave repository, we can revisit this feature request and see what needs to be done to get this format working with libsndfile support.

Mike Miller <mtmiller>
Group Member
Fri 13 Jul 2012 06:22:07 PM UTC, original submission:  

wavread() supports RIFF Wave files with format chunks 0x0001 (PCM) and 0x0003 (FLOAT). This feature request is for support for format chunk 0xFFFE (WAVE_FORMAT_EXTENSIBLE). This format is written and read by a number of common audio utilities including sox, Audacity, and Audition, and inclusion of this feature would improve interoperability with those utilities and the general audio ecosystem.

The format appears when Wave files are written with more than 24 bits/sample, more than 2 channels, and in other cases.

The following page describes the format chunk and includes references to Wave spec documents from Microsoft:
http://www-mmsp.ece.mcgill.ca/documents/audioformats/wave/wave.html

The following bug is related, but was closed without resolution of the underlying problem: https://savannah.gnu.org/bugs/?36733
The resolution in that case was to use Audacity to open and close the file, because Audacity will write 24 bit Waves with WAVE_FORMAT_PCM instead of EXTENSIBLE.

A file in the format is attached. The error when loading the attached file is:

error: wavread: sample format 0xfffe is not supported
error: called from:
error:   /usr/share/octave/3.6.2/m/audio/wavread.m at line 110, column 7


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #26198:  24bit_test_wav.wav added by None (220KiB - audio/wav - Example of file in format that fails to load in Octave.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-21 mtmiller StatusPostponed Fixed
        Open/ClosedOpen Closed
    2014-01-19 mtmiller CategoryNone Octave Function
        Severity3 - Normal 1 - Wish
        StatusNone Postponed
        Release3.6.2 dev
    2012-07-13 None Attached File- Added 24bit_test_wav.wav, #26198

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code