[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
multiple problems with audio toolbox
From: |
Dmitri A. Sergatskov |
Subject: |
multiple problems with audio toolbox |
Date: |
Sat, 01 Mar 2003 15:51:03 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 |
It appears to me that audio toolbox fell out of sync with recent octave.
(I am using octave-2.1.45 and octave-forge-2003.02.23.)
It all started with a 'chirp' -- trying an example from 'help chirp' results in
error:
octave:31> soundsc(chirp([0:1/8000:5], 200, 2, 500, "logarithmic"),8000);
sox: Failed reading -: Did not detect valid Sun/NeXT/DEC magic number in header.
octave:32>
...
Did some reading and trying 'auload', 'sound' etc... Nothing seems to work
quite right.
I used yahoo2.au from j2sdk1.4.1_01 and music_menu.wav from Chromium (this is
a linux game):
address@hidden t4c-8]$ file music_menu.wav
music_menu.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit,
mono 22050 Hz
address@hidden t4c-8]$ file yahoo2.au
yahoo2.au: Sun/NeXT audio data: 8-bit ISDN u-law, mono, 8000 Hz
('play' at the bash prompt plays both files OK)
In 'help auload' there is an example:
[x, fs] = auload(file_in_loadpath("sample.wav"));
auplot(x,fs);
First of all, 'file_in_loadpath' now wants at least two arguments: LOADPATH and
FILE.
(Similar problem with demo in soundsc.m file). Modified the line accordingly:
octave:34> [x,fs]=auload(file_in_path(".","music_menu.wav"));
octave:35> soundsc(x,fs);
sox: Failed reading -: Did not detect valid Sun/NeXT/DEC magic number in header.
octave:36> [x,fs]=auload(file_in_path(".","yahoo2.au"));
octave:37> soundsc(x,fs);
sox: Failed reading -: Did not detect valid Sun/NeXT/DEC magic number in header.
Am I missing something?
Sincerely,
Dmitri.
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- multiple problems with audio toolbox,
Dmitri A. Sergatskov <=