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

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

[Octave-bug-tracker] [bug #47875] Crash on audiowrite


From: Rick T
Subject: [Octave-bug-tracker] [bug #47875] Crash on audiowrite
Date: Sun, 8 May 2016 09:36:33 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0

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

                 Summary: Crash on audiowrite
                 Project: GNU Octave
            Submitted by: ratulloch
            Submitted on: Sun 08 May 2016 09:36:32 AM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Crash
                  Status: None
             Assigned to: None
         Originator Name: Rick T
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Octave 4.0 crashes using audiowrite if incorrect values are used.

This is the code that crashes Octave every-time using octave 4.0.0.  I'm using
Ubuntu 16.04 64bit 


fs =8000;                    % Sampling frequency
fs_rate=fs;
dursec=10; %%duration of signal in seconds

t=linspace(0,2*pi,dursec*fs); 
freq=primes(fs/2*dursec);
freq=freq';

ya=zeros(1,length(t));
numfreq=numel(freq)

for ii=1:1:numel(freq)
        ya = ya+sin(freq(ii,1)*t); 
end

audio_prop='BitsPerSample',16,'Artist','artist rt','Title','title section
rt','Comment','Comments section rt';
audiowrite('/tmp/test.flac',[ya(:) -1*ya(:)],44100,audio_prop)




this can be prevented by using the correct syntax and changing the following
two lines
audio_prop={'BitsPerSample',16,'Artist','artist rt','Title','title section
rt','Comment','Comments:fn used goes here'};
audiowrite('/tmp/test.flac',[ya(:) -1*ya(:)],44100,audio_prop{:})




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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