[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: playaduio in octave 3.2.3
From: |
Henry F. Mollet |
Subject: |
Re: playaduio in octave 3.2.3 |
Date: |
Mon, 23 Nov 2009 18:31:02 -0800 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
on 11/23/09 5:19 AM, Jaroslav Hajek at address@hidden wrote:
> On Sat, Nov 21, 2009 at 6:39 AM, Adrian pamin <address@hidden>wrote:
>
>> Hi,
>> Im a little new to using octave and GNU systems but there seems to be a
>> problem with the playaudio() function in the Octave 3.2.3 patch. When trying
>> to use the playaudio(x) the error "The system cannot find the path
>> specified." I have tried this in a Vista and Win XP system yielding the same
>> results. Below is the code used:
>>
>> t = [0:1/8000:2]
>> sig3 = 0.8*sin(2*pi*3*t)
>> plot(t,sig3)
>> playaudio(sig3)
>>
>> My friends and professor are stumped with this error as they can use the
>> function without problems on a Linux and Mac OS. Is this possibly a Windows
>> problem? would switching to a VM or dual booting help? Thanks in advance...
>>
>>
> I'm afraid the current playaudio is only designed to run on Unix systems,
> because all it does is send data to /dev/dsp or /dev/audio. There could
> probably be an alternative path for Windows, using a temporary wav file or
> something similar.
>
> hth
I cannot find /dev/dsp or /dev/audio on my mac:
[/dev] -bash-2.05b 504$ locate /dev/dsp
[/dev] -bash-2.05b 505$ locate /dev/audio
[/dev] -bash-2.05b 506$
Accordingly? :
octave-3.2.2:1> t = [0:1/8000:2];
octave-3.2.2:2> sig3 = 0.8*sin(2*pi*3*t);
octave-3.2.2:3> plot(t,sig3)
octave-3.2.2:4> playaudio(sig3)
sh: line 1: /dev/dsp: Permission denied
octave-3.2.2:5> help playaudio
`playaudio' is a function from the file
/Applications/Octave.app/Contents/Resources/share/octave/3.2.2/m/audio/playa
udio.m
-- Function File: playaudio (NAME, EXT)
-- Function File: playaudio (X)
Plays the audio file `NAME.EXT' or the audio data stored in the
vector X.
See also: lin2mu, mu2lin, loadaudio, saveaudio, setaudio, record
Henry