octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42519] wavread gives an extra sample from 8-b


From: Danilo de Jesus da Silva Bellini
Subject: [Octave-bug-tracker] [bug #42519] wavread gives an extra sample from 8-bit word-aligned data
Date: Sat, 07 Jun 2014 01:01:39 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0

URL:
  <http://savannah.gnu.org/bugs/?42519>

                 Summary: wavread gives an extra sample from 8-bit
word-aligned data
                 Project: GNU Octave
            Submitted by: danilobellini
            Submitted on: Sáb 07 Jun 2014 01:01:38 GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Danilo de Jesus da Silva Bellini
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Wave files are word-aligned, yet the last extra align byte that could appear
in an 8-bit sample width single channel wave file (i.e., a file with block
align equals to 1) shoudn't appear as an extra -1 value (unsigned char zero
mapped to a [-1;1) range) in the wavread resulting vector.

I've made two 7-samples 8bit wave files that reproduce this issue. The vector
size when reading them from octave is 8.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sáb 07 Jun 2014 01:01:38 GMT  Name: 8.wav  Size: 52B   By:
danilobellini
8.wav has RIFF size counting the last align byte, 8_sizeok.wav has RIFF size
not counting that extra byte
<http://savannah.gnu.org/bugs/download.php?file_id=31519>
-------------------------------------------------------
Date: Sáb 07 Jun 2014 01:01:38 GMT  Name: 8_sizeok.wav  Size: 52B   By:
danilobellini
8.wav has RIFF size counting the last align byte, 8_sizeok.wav has RIFF size
not counting that extra byte
<http://savannah.gnu.org/bugs/download.php?file_id=31520>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42519>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]