discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Can't restart ALSA audio, but OSS works


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Can't restart ALSA audio, but OSS works
Date: Tue, 21 Jun 2005 14:33:21 -0700
User-agent: Mutt/1.5.6i

On Tue, Jun 21, 2005 at 03:32:52PM -0400, cswiger wrote:
> Just noticed something, using ALSA, once the flow graph is stopped,
> restarting gives an error:
> 
> >>> from gnuradio import gr
> >>> fg=gr.flow_graph()
> >>> src = gr.sig_source_f(32000,gr.GR_SIN_WAVE,350,.2,0)
> >>> from gnuradio import audio
> >>> sink = audio.sink (32000)
> >>> fg.connect(src,sink)
> >>> fg.start()
> >>> fg.stop()
> >>> fg.start()
> ALSA lib pcm_hw.c:370:(snd_pcm_hw_hw_free) SNDRV_PCM_IOCTL_HW_FREE failed:
> File descriptor in bad state
> audio_alsa_sink[hw:0,0]: snd_pcm_hw_params failed: File descriptor in bad
> state

Thanks.

There's a FIXME in gr-audio-alsa code that says this will happen and needs
to be fixed.  I guess it's time ;-)

Anybody beside me like to take a look at it?

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]