[Top][All Lists]

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

[Octave-bug-tracker] [bug #56889] Incorrect encoding results from uint8

From: Rik
Subject: [Octave-bug-tracker] [bug #56889] Incorrect encoding results from uint8 vector to wav file
Date: Sun, 15 Sep 2019 13:58:35 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #12, bug #56889 (project octave):

This continues to get more complicated.  I can get the written output file to
contain 0xFF if I change the bias and scale arguments to be 127.5.  However, I
experimented with writing -1.0 using libsndfile API and the result is 0x01
rather than 0x00.  Maybe this is something about how WAV files are written, or
maybe there is an additional bug in libsndfile.

@Imad:  Could you run this test in Matlab and upload the file.  That will
really help clarify what the expected behavior is.

audiowrite ('tst.matlab.uint8.wav', uint8 ([0, 1, 2, 253, 254, 255]), 8000,
'BitsPerSample', 8)


Reply to this item at:


  Message sent via Savannah

reply via email to

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