Hi everybody,
I'm trying to use PortAudio.
I compiled it to use oss devices. But when trying to execute some test programs, I'm always having the same error. For example, executing the program patest_sine (that should reproduce a sine signal):
Code:
[root@arm-linux portaudio]# ./patest_sine
PortAudio Test: output sine wave. SR = 44100, BufSize = 64request IOCTL 1074024464
Expression 'ioctl( stream->playback->fd, SNDCTL_DSP_request IOCTL 20488 SETTRIGGER, &enableBits )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1437
Expression 'PaOssStream_Prepare( stream )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1592
Stream Completed: No Message
I though something was not good with my sound devices, and I executed pa_devs:
Code:
[root@arm-linux portaudio]# ./pa_devs
PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Apr 27 2010 19:09:27)'
Number of devices = 1
--------------------------------------- device #0
[ Default Input, Default Output ]
Name = /dev/dsp
Host API = OSS
Max inputs = 2, Max outputs = 2
Default low input latency = 0.012
Default low output latency = 0.012
Default high input latency = 0.046
Default high output latency = 0.046
Default sample rate = 44100.00
Supported standard sample rates
for half-duplex 16 bit 2 channel input =
8000.00, 9600.00, 11025.00, 12000.00,
16000.00, 22050.00, 24000.00, 32000.00,
44100.00, 48000.00, 88200.00, 96000.00,
192000.00
Supported standard sample rates
for half-duplex 16 bit 2 channel output =
8000.00, 9600.00, 11025.00, 12000.00,
16000.00, 22050.00, 24000.00, 32000.00,
44100.00, 48000.00, 88200.00, 96000.00,
192000.00
Supported standard sample rates
for full-duplex 16 bit 2 channel input, 2 channel output =
8000.00, 9600.00, 11025.00, 12000.00,
16000.00, 22050.00, 24000.00, 32000.00,
44100.00, 48000.00, 88200.00, 96000.00,
192000.00
----------------------------------------------
[root@arm-linux portaudio]#
It seems like should work, but doesn't.
Does anybody know how to make PortAudio work?
Regards,
Sérgio Gonçalves