bugGNU Octave - Bugs: bug #59082, Audioplayer command is always...


bug #59082: Audioplayer command is always returning an error.

Submitted by:  John Grimes <johng>
Submitted on:  Tue 08 Sep 2020 03:14:10 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  John Grimes Open/Closed:  Closed
Release:  6.0.90 Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 09 Sep 2020 11:17:34 PM UTC, comment #5: 

This was pretty simple.  This changeset (https://hg.savannah.gnu.org/hgweb/octave/rev/28676df1deaf) was made on the development branch but never grafted back on to the stable branch.  I've done that now.

If there is a problem with 8-bit streams that should become a new bug report.

Marking this one as fixed and closing report.

Rik <rik5>
Project Administrator
Wed 09 Sep 2020 11:09:05 PM UTC, comment #4: 

Confirmed.  I seem the same error on Linux when using the stable branch which is about to become version 6.1.  The sample code does work on the development branch.

Rik <rik5>
Project Administrator
Wed 09 Sep 2020 01:37:44 PM UTC, comment #3: 

Since audiowrite defaults to saving files with 16 bits, I decided to check to see if playing the file with 16 bits rather than 8 bits would work.    It did not and gave me the same error.

I would say this is not limited to problems with 8 bit streams, but wonder if this is somehow related to logic developed to address bug #57939?

John Grimes <johng>
Wed 09 Sep 2020 11:08:25 AM UTC, comment #2: 

Portaudio sometimes has problems with 8Bit streams. There is a workaround for the audiorecorder object in bug #44305. I'll have a look if that should be done for audioplayer, too.

Lars Kindermann <larskindermann>
Wed 09 Sep 2020 06:55:33 AM UTC, comment #1: 

On linux, this works better. I don't see the reported error  and the audioplayer object is correctly created. But then after "play (player)" I hear an A with "glitches", like saturated.
This does not happen with 16 or 24 bits.

I changed the item group to "Unexpected Error" since the error message says only 8, 16 and 24 bits are supported even though you specified 8 bits in the constructor.

Pantxo Diribarne <pantxo>
Project Member
Tue 08 Sep 2020 03:14:10 PM UTC, original submission:  

Version 6.0.90 of Octave.

I have not been able to get the audioplayer or sound commands to function properly.    I get the following error.

à£żerror: audioplayer: NBITS must be 8, 16, or 24
error: called from
    audioplayer at line 112 column 19

Here is is what I used to generate the error.   When I play cosine.ogg with another media player, it functions fine.

audiowrite(filename, signal, fs);

John Grimes <johng>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by larskindermann (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by johng (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-09 rik5 StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2020-09-09 rik5 StatusNone => Confirmed
    2020-09-09 rik5 Operating SystemMicrosoft Windows => Any
    2020-09-09 pantxo Item GroupInaccurate Result => Unexpected Error or Warning

    Back to the top

    Powered by Savane 3.5