* Problem restarting alsa: can't set buffer size
@ 2007-06-05 19:11 Juan Manuel Lopez Baio
2007-06-06 6:21 ` Clemens Ladisch
0 siblings, 1 reply; 2+ messages in thread
From: Juan Manuel Lopez Baio @ 2007-06-05 19:11 UTC (permalink / raw)
To: alsa-devel
Hello. I'm developing an application that records input from ALSA and
process it. To do so I user the API starting with snd_pcm_open and follow
with the parameters settings and so on, and once the app is done and exits,
it closes with snd_pcm_hw_params_free and snd_pcm_close.
The problem is that afterwards, if I restart the application, I can't set up
ALSA, becausea continuous calls to snd_pcm_hw_params_set_buffer_size always
fail (I start with a buffer size of 8192 and keep dividing it by 2). I
finally have to restart the system in order to get it to work again.
I'm on a Mandriva box with gcc 4.1.2
¿Any thoughts on this? Thanks in advance!
juan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problem restarting alsa: can't set buffer size
2007-06-05 19:11 Problem restarting alsa: can't set buffer size Juan Manuel Lopez Baio
@ 2007-06-06 6:21 ` Clemens Ladisch
0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2007-06-06 6:21 UTC (permalink / raw)
To: Juan Manuel Lopez Baio, alsa-devel
Juan Manuel Lopez Baio wrote:
> The problem is that afterwards, if I restart the application, I can't set up
> ALSA, becausea continuous calls to snd_pcm_hw_params_set_buffer_size always
> fail (I start with a buffer size of 8192 and keep dividing it by 2).
What values are returned by snd_pcm_hw_params_get_buffer_size_max()
and _min()?
Why do you try to set a buffer size?
> I finally have to restart the system in order to get it to work again.
Which sound driver are you using?
Regards,
Clemens
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-06 6:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-05 19:11 Problem restarting alsa: can't set buffer size Juan Manuel Lopez Baio
2007-06-06 6:21 ` Clemens Ladisch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).