LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-28-2010, 09:24 AM   #1
TheSergon13
LQ Newbie
 
Registered: Feb 2010
Location: Portugal
Posts: 10

Rep: Reputation: 0
Question PortAudio makes no sound


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

Last edited by TheSergon13; 04-29-2010 at 02:26 PM.
 
  


Reply

Tags
audio, failed, ioctl, oss


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make 2 sound cards from 1 lukebeales Linux - Software 0 11-26-2006 10:33 PM
Sound card works but CD player doesn't make a sound? OmnipotentOscar Linux - Newbie 2 02-03-2005 03:42 AM
my sound card make funny sound in gaim Paxmaster Linux - Software 1 12-27-2004 06:24 PM
Need to run system-config-sound after every boot too make sound work in FC2 jrbiochem Linux - Hardware 11 08-04-2004 07:08 AM
How to make a sound on Realtec ALC-650 card sound on a Shuttle ST62K? Laurent Linux - Hardware 0 05-30-2004 11:57 AM


All times are GMT -5. The time now is 08:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration