Error message: Device unavailable

View: New views
3 Messages — Rating Filter:   Alert me  

Error message: Device unavailable

by Shayne Wissler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I've been trying to use portaudio on "Ubuntu 7.10 - the Gutsy Gibbon"
and am getting mixed results. At first, the patest programs all worked
for me. Now my system is in such a state that I keep getting "Error
message: Device unavailable" from patest_saw; the other patest
programs seem to just crash.

If I reboot, it seems to work again, but then it gets into this broken
state. When I run my own program that is based on ALSA, sound works
fine. When I run my own program based on patest_write_sine, it fails
in the same manner.

I have tried this both with pa_stable_v19_20071207 and a v18 and get
the same results: I can access sound with the ALSA API or with other
sound programs on my system just fine, but all the patest programs
fail.

Suggestions?


Shayne
_______________________________________________
Portaudio mailing list
Portaudio@...
http://techweb.rfa.org/mailman/listinfo/portaudio

Re: Error message: Device unavailable

by Shayne Wissler-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here is some more information on this bug: It seems that the bad state
might have been precipitated by a bogus sample rate. I'd set the rate
to 441000 instead of 44100 in my program. This seems to have corrupted
the system state such that after I'd run my test, the patest* programs
were broken until I'd rebooted. That's just a guess though.

Now I'm having a different problem. Is portaudio in an early alpha
state, or is it reasonable to use it in production-quality software?
I'm considering writing my own audio interfaces per platform, but I'd
really rather not reinvent the wheel here.


Shayne

On Thu, May 1, 2008 at 1:50 PM, Shayne Wissler <wissler@...> wrote:

> Hello,
>
>  I've been trying to use portaudio on "Ubuntu 7.10 - the Gutsy Gibbon"
>  and am getting mixed results. At first, the patest programs all worked
>  for me. Now my system is in such a state that I keep getting "Error
>  message: Device unavailable" from patest_saw; the other patest
>  programs seem to just crash.
>
>  If I reboot, it seems to work again, but then it gets into this broken
>  state. When I run my own program that is based on ALSA, sound works
>  fine. When I run my own program based on patest_write_sine, it fails
>  in the same manner.
>
>  I have tried this both with pa_stable_v19_20071207 and a v18 and get
>  the same results: I can access sound with the ALSA API or with other
>  sound programs on my system just fine, but all the patest programs
>  fail.
>
>  Suggestions?
>
>
>  Shayne
>
_______________________________________________
Portaudio mailing list
Portaudio@...
http://techweb.rfa.org/mailman/listinfo/portaudio

Re: Error message: Device unavailable

by Arve Knudsen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 03 May 2008 20:50:25 +0200, Shayne Wissler <wissler@...>  
wrote:

> Here is some more information on this bug: It seems that the bad state
> might have been precipitated by a bogus sample rate. I'd set the rate
> to 441000 instead of 44100 in my program. This seems to have corrupted
> the system state such that after I'd run my test, the patest* programs
> were broken until I'd rebooted. That's just a guess though.

Sounds like your sound device was somehow put in a bad state, I've  
experienced something similar with an RME card (the driver had to be  
reloaded).

> Now I'm having a different problem. Is portaudio in an early alpha
> state, or is it reasonable to use it in production-quality software?
> I'm considering writing my own audio interfaces per platform, but I'd
> really rather not reinvent the wheel here.

PortAudio is past alpha quality I would say, but there seems to remain  
certain performance problems with the ALSA back-end (which I personally am  
not able to take the time to sit down and fix).

Arve

>
> Shayne
>
> On Thu, May 1, 2008 at 1:50 PM, Shayne Wissler <wissler@...> wrote:
>> Hello,
>>
>>  I've been trying to use portaudio on "Ubuntu 7.10 - the Gutsy Gibbon"
>>  and am getting mixed results. At first, the patest programs all worked
>>  for me. Now my system is in such a state that I keep getting "Error
>>  message: Device unavailable" from patest_saw; the other patest
>>  programs seem to just crash.
>>
>>  If I reboot, it seems to work again, but then it gets into this broken
>>  state. When I run my own program that is based on ALSA, sound works
>>  fine. When I run my own program based on patest_write_sine, it fails
>>  in the same manner.
>>
>>  I have tried this both with pa_stable_v19_20071207 and a v18 and get
>>  the same results: I can access sound with the ALSA API or with other
>>  sound programs on my system just fine, but all the patest programs
>>  fail.
>>
>>  Suggestions?
>>
>>
>>  Shayne
>>
> _______________________________________________
> Portaudio mailing list
> Portaudio@...
> http://techweb.rfa.org/mailman/listinfo/portaudio


_______________________________________________
Portaudio mailing list
Portaudio@...
http://techweb.rfa.org/mailman/listinfo/portaudio