bugGNU Octave - Bugs: bug #43965, Audio play does not do stereo

 
 

bug #43965: Audio play does not do stereo

Submitted by:  Doug Stewart <dastew>
Submitted on:  Sat 10 Jan 2015 02:39:43 AM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Doug Stewart Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Mon 12 Jan 2015 12:41:49 PM UTC, comment #1: 

Fixed with cset http://hg.savannah.gnu.org/hgweb/octave/rev/810cfb00b72b, closing report.

My testcase for stereo playback is:

clear
len = 3;
Fs = 44100;
t = linspace (0, len, Fs*len);
mask = repmat ([1 0], Fs/2, len)(:);
y(:,2) = mask .* sin(2*pi*440*t');
y(:,1) = (1-mask) .* sin(2*pi*800*t');
q = audioplayer(y,Fs,16);
play (q)

Thanks, Andy

Andreas Weber <andy1978>
Project Member
Sat 10 Jan 2015 02:39:43 AM UTC, original submission:  

This code plays stereo before  this change

(7c0e20def8e3) improve efficiency of portaudio callback function …

but now does not;

clear
Fs=44100;
t=3;
x=0:1/Fs:t;
y(:,2)=sin(2*pi*440*x);
y(:,1)=sin(2*pi*448*x);
q=audioplayer(y,Fs,16);
play(q)

y(:,1)   is played on both speakers.
Doug

Doug Stewart <dastew>

 

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

Attach Files:
   
   
Comment:
   

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 andy1978 (Posted a comment)
  • -email is unavailable- added by dastew (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-12 andy1978 CategoryNone => Octave Function
        StatusNone => Fixed
        Open/ClosedOpen => Closed

    Back to the top


    Powered by Savane 3.5