[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sound() in Octave
From: |
Jordi Gutiérrez Hermoso |
Subject: |
Re: sound() in Octave |
Date: |
Wed, 28 Nov 2012 16:59:03 -0500 |
On 28 November 2012 16:55, Jordi Gutiérrez Hermoso <address@hidden> wrote:
> On 28 November 2012 16:51, Francesco Potortì <address@hidden> wrote:
>>>Sound in Octave does not work unless you have an old Linux
>>>installation that allows you to directly write to /dev/dsp. It may be
>>>easier to use wavwrite to save your sound files and play them with an
>>>external program.
>>
>> I see this on my system:
>>
>> $ ls -l /dev/dsp
>> crw-rw---T+ 1 root audio 14, 3 Sep 26 16:16 /dev/dsp
>
> Yeah, but /dev/dsp doesn't even exist unless you're using OSS or have
> some compatibility enabled for it.
Oh, not to mention, you also have to make sure nothing else is using
/dev/dsp, e.g. no desktop system or alternative audio system. All in
all, the current Octave method for playing sound requires the planets
to be perfectly aligned up to 8 significant figures and we really need
something far more portable. Compatibility layers such as portaudio or
SDL seem like the possible options.
- Jordi G. H.
Re: sound() in Octave, Hugo Coolens, 2012/11/28