Discussion:
[Portaudio] Can't find device with portaudio
Peter Pan
2010-12-23 11:17:30 UTC
Permalink
Hello

I'm new to portaudio, and I tried to run the samples under portauido/test
recently, such as patest_saw.c, etc. They worked fine at the beginning, but
after I reinstalled my ubuntu, I find I can't run those again.
the error message is :

Error: No default output device.

I tried query the devices, and it returned zero, as I run bin/pa_devs, it
says:

PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Dec 23 2010 05:29:26)'
Number of devices = 0
----------------------------------------------

I tried make clean - ./configure - make - make install, but doesn't help.
It was built with oss support only. Then I tried installing alsa-lib and
build it will alsa support, but still got the same thing.

I was using ubuntu 10.10, and portaudio v19. the sound card works fine on my
box.
The sound device is "HDA Intel Analog Stereo". I'm sorry that I don't know
how to get further infomation of the sound card.

would someone help me with this?

thanks!
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://music.columbia.edu/pipermail/portaudio/attachments/20101223/425bbd35/attachment.html>
jan van katwijk
2010-12-24 12:08:06 UTC
Permalink
Hello

On my ubuntu 10.04 box, portaudio is running fine, using the /dev/dsp (i.e.
oss) interface.
Look into the /etc/modprobe.d files to see how to activate OSS modules.

best
jan


2010/12/23 Peter Pan <hawkwithwind at gmail.com>
Post by Peter Pan
Hello
I'm new to portaudio, and I tried to run the samples under portauido/test
recently, such as patest_saw.c, etc. They worked fine at the beginning, but
after I reinstalled my ubuntu, I find I can't run those again.
Error: No default output device.
I tried query the devices, and it returned zero, as I run bin/pa_devs, it
PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Dec 23 2010 05:29:26)'
Number of devices = 0
----------------------------------------------
I tried make clean - ./configure - make - make install, but doesn't help.
It was built with oss support only. Then I tried installing alsa-lib and
build it will alsa support, but still got the same thing.
I was using ubuntu 10.10, and portaudio v19. the sound card works fine on
my box.
The sound device is "HDA Intel Analog Stereo". I'm sorry that I don't know
how to get further infomation of the sound card.
would someone help me with this?
thanks!
Peter
_______________________________________________
Portaudio mailing list
Portaudio at music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio
--
Jan van Katwijk


+31 (0)15 3698980
+31 (0) 628260355
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://music.columbia.edu/pipermail/portaudio/attachments/20101224/3bc859cb/attachment.html>
Peter Pan
2010-12-26 16:18:39 UTC
Permalink
Hello Katwijk,

I go to /etc/modprobe.d and find some blacklist files.
I found blacklist-oss.conf file, I thought I should comment out some line to
activate OSS, but I don't know how to recognize which line should be comment
out. I've tried comment out all the lines, but it doesn't work -- sound
still work in gnome, but I still can't get sound device with portaudio APIs.

the blacklist-oss.conf file look like this:

blacklist ac97
blacklist ac97_codec
blacklist ac97_plugin_ad1980
blacklist ad1848
blacklist ad1889
blacklist adlib_card
blacklist aedsp16
blacklist ali5455
blacklist btaudio
blacklist cmpci
blacklist cs4232
blacklist cs4281
blacklist cs461x
blacklist cs46xx
blacklist emu10k1
blacklist es1370
blacklist es1371
blacklist esssolo1
blacklist forte
blacklist gus
blacklist i810_audio
blacklist kahlua
blacklist mad16
blacklist maestro
blacklist maestro3
blacklist maui
blacklist mpu401
blacklist nm256_audio
blacklist opl3
blacklist opl3sa
blacklist opl3sa2
blacklist pas2
blacklist pss
blacklist rme96xx
blacklist sb
blacklist sb_lib
blacklist sgalaxy
blacklist sonicvibes
blacklist sound
blacklist sscape
blacklist trident
blacklist trix
blacklist uart401
blacklist uart6850
blacklist via82cxxx_audio
blacklist v_midi
blacklist wavefront
blacklist ymfpci
blacklist ac97_plugin_wm97xx
blacklist ad1816
blacklist audio
blacklist awe_wave
blacklist dmasound_core
blacklist dmasound_pmac
blacklist harmony
blacklist sequencer
blacklist soundcard
blacklist usb-midi



would you give me further direct on activating OSS?

thanks,
Peter



Date: Fri, 24 Dec 2010 13:08:06 +0100
From: jan van katwijk <j.vankatwijk at gmail.com>
To: Portaudio Mailing List <portaudio at music.columbia.edu>
Subject: Re: [Portaudio] Can't find device with portaudio
<AANLkTinbT3zQePLU2Lv6XNhmMCieXKWYiVTo1XCGA7P7 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hello
On my ubuntu 10.04 box, portaudio is running fine, using the /dev/dsp (i.e.
oss) interface.
Look into the /etc/modprobe.d files to see how to activate OSS modules.
best
jan
2010/12/23 Peter Pan <hawkwithwind at gmail.com>
Post by Peter Pan
Hello
I'm new to portaudio, and I tried to run the samples under portauido/test
recently, such as patest_saw.c, etc. They worked fine at the beginning,
but
Post by Peter Pan
after I reinstalled my ubuntu, I find I can't run those again.
Error: No default output device.
I tried query the devices, and it returned zero, as I run bin/pa_devs, it
PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Dec 23 2010
05:29:26)'
Post by Peter Pan
Number of devices = 0
----------------------------------------------
I tried make clean - ./configure - make - make install, but doesn't help.
It was built with oss support only. Then I tried installing alsa-lib and
build it will alsa support, but still got the same thing.
I was using ubuntu 10.10, and portaudio v19. the sound card works fine on
my box.
The sound device is "HDA Intel Analog Stereo". I'm sorry that I don't
know
Post by Peter Pan
how to get further infomation of the sound card.
would someone help me with this?
thanks!
Peter
_______________________________________________
Portaudio mailing list
Portaudio at music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio
--
Jan van Katwijk
+31 (0)15 3698980
+31 (0) 628260355
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://music.columbia.edu/pipermail/portaudio/attachments/20101224/3bc859cb/attachment-0001.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://music.columbia.edu/pipermail/portaudio/attachments/20101227/9e1fa110/attachment.html>
Peter Pan
2011-01-01 20:43:34 UTC
Permalink
Hello, Katwijk

I find your workaround is a little complex for me, and that portaudio works
well on Ubuntu 10.04. Since Ubuntu 10.10 is not a stable version, I decide
to focus on 10.04 now, and fix it later on 10.10.

Thank you very much!
Peter
Hello P Pan
For my ubuntu I ensured that in alsa-base the oss modules were specified to
be loaded. When building portaudio I ensured that
OSS interface was built.
Since then the OSS interface is the only one.
On Fedora I did essentially the same and there it also worked
best
jan van Katwijk
#
# Workaround at bug #499695 (reverted in Ubuntu see LP #319505)
install snd-pcm /sbin/modprobe --ignore-install snd-pcm $CMDLINE_OPTS && {
/sbin/modprobe --quiet --use-blacklist snd-pcm-oss ; : ; }
install snd-mixer /sbin/modprobe --ignore-install snd-mixer $CMDLINE_OPTS
&& { /sbin/modprobe --quiet --use-blacklist snd-mixer-oss ; : ; }
install snd-seq /sbin/modprobe --ignore-install snd-seq $CMDLINE_OPTS && {
/sbin/modprobe --quiet --use-blacklist snd-seq-midi ; /sbin/modprobe --quiet
--use-blacklist snd-seq-oss ; : ; }
#
2010/12/26 Peter Pan <hawkwithwind at gmail.com>
Hello Katwijk,
Post by Peter Pan
I go to /etc/modprobe.d and find some blacklist files.
I found blacklist-oss.conf file, I thought I should comment out some line
to activate OSS, but I don't know how to recognize which line should be
comment out. I've tried comment out all the lines, but it doesn't work --
sound still work in gnome, but I still can't get sound device with portaudio
APIs.
blacklist ac97
blacklist ac97_codec
blacklist ac97_plugin_ad1980
blacklist ad1848
blacklist ad1889
blacklist adlib_card
blacklist aedsp16
blacklist ali5455
blacklist btaudio
blacklist cmpci
blacklist cs4232
blacklist cs4281
blacklist cs461x
blacklist cs46xx
blacklist emu10k1
blacklist es1370
blacklist es1371
blacklist esssolo1
blacklist forte
blacklist gus
blacklist i810_audio
blacklist kahlua
blacklist mad16
blacklist maestro
blacklist maestro3
blacklist maui
blacklist mpu401
blacklist nm256_audio
blacklist opl3
blacklist opl3sa
blacklist opl3sa2
blacklist pas2
blacklist pss
blacklist rme96xx
blacklist sb
blacklist sb_lib
blacklist sgalaxy
blacklist sonicvibes
blacklist sound
blacklist sscape
blacklist trident
blacklist trix
blacklist uart401
blacklist uart6850
blacklist via82cxxx_audio
blacklist v_midi
blacklist wavefront
blacklist ymfpci
blacklist ac97_plugin_wm97xx
blacklist ad1816
blacklist audio
blacklist awe_wave
blacklist dmasound_core
blacklist dmasound_pmac
blacklist harmony
blacklist sequencer
blacklist soundcard
blacklist usb-midi
would you give me further direct on activating OSS?
thanks,
Peter
Date: Fri, 24 Dec 2010 13:08:06 +0100
From: jan van katwijk <j.vankatwijk at gmail.com>
To: Portaudio Mailing List <portaudio at music.columbia.edu>
Subject: Re: [Portaudio] Can't find device with portaudio
<AANLkTinbT3zQePLU2Lv6XNhmMCieXKWYiVTo1XCGA7P7 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hello
On my ubuntu 10.04 box, portaudio is running fine, using the /dev/dsp (i.e.
oss) interface.
Look into the /etc/modprobe.d files to see how to activate OSS modules.
best
jan
2010/12/23 Peter Pan <hawkwithwind at gmail.com>
Post by Peter Pan
Hello
I'm new to portaudio, and I tried to run the samples under
portauido/test
Post by Peter Pan
recently, such as patest_saw.c, etc. They worked fine at the beginning,
but
Post by Peter Pan
after I reinstalled my ubuntu, I find I can't run those again.
Error: No default output device.
I tried query the devices, and it returned zero, as I run bin/pa_devs,
it
Post by Peter Pan
PortAudio version number = 1899
PortAudio version text = 'PortAudio V19-devel (built Dec 23 2010
05:29:26)'
Post by Peter Pan
Number of devices = 0
----------------------------------------------
I tried make clean - ./configure - make - make install, but doesn't
help.
Post by Peter Pan
It was built with oss support only. Then I tried installing alsa-lib
and
Post by Peter Pan
build it will alsa support, but still got the same thing.
I was using ubuntu 10.10, and portaudio v19. the sound card works fine
on
Post by Peter Pan
my box.
The sound device is "HDA Intel Analog Stereo". I'm sorry that I don't
know
Post by Peter Pan
how to get further infomation of the sound card.
would someone help me with this?
thanks!
Peter
_______________________________________________
Portaudio mailing list
Portaudio at music.columbia.edu
http://music.columbia.edu/mailman/listinfo/portaudio
--
Jan van Katwijk
+31 (0)15 3698980
+31 (0) 628260355
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://music.columbia.edu/pipermail/portaudio/attachments/20101224/3bc859cb/attachment-0001.html
--
Jan van Katwijk
+31 (0)15 3698980
+31 (0) 628260355
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://music.columbia.edu/pipermail/portaudio/attachments/20110102/6ffdf2e5/attachment-0001.html>
Continue reading on narkive:
Search results for '[Portaudio] Can't find device with portaudio' (Questions and Answers)
10
replies
my nephew wants to became a sonogram what are the requirements?
started 2007-10-18 09:41:32 UTC
law & ethics
Loading...