* Assertion `!snd_interval_empty(i)' failed
@ 2003-07-11 20:18 Garrett Kajmowicz
2003-07-16 10:34 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Garrett Kajmowicz @ 2003-07-11 20:18 UTC (permalink / raw)
To: alsa-devel
I am working on software designed for VOIP, but it dynamically changes sample
rates and so forth on the fly. So prior to doing a snd_pcm_readi, I check
to see if I need to change any parameters. If so I used the existing
hw_params object and apply the required changes to sample rate, data type,
etc.
I then call pcm_drop to close the pcm device, followed by
snd_pcm_hw_params(pcm_handle, hwparams) which should properly apply the
configuration. Instead I get:
interval.c:108: snd_interval_refine_min: Assertion `!snd_interval_empty(i)'
failed.
Aborted
How do I go about fixing this problem?
Garrett Kajmowicz
gkajmowi@tbaytel.net
-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Assertion `!snd_interval_empty(i)' failed
2003-07-11 20:18 Assertion `!snd_interval_empty(i)' failed Garrett Kajmowicz
@ 2003-07-16 10:34 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-07-16 10:34 UTC (permalink / raw)
To: gkajmowi; +Cc: alsa-devel
At Fri, 11 Jul 2003 16:18:14 -0400,
Garrett Kajmowicz wrote:
>
> I am working on software designed for VOIP, but it dynamically changes sample
> rates and so forth on the fly. So prior to doing a snd_pcm_readi, I check
> to see if I need to change any parameters. If so I used the existing
> hw_params object and apply the required changes to sample rate, data type,
> etc.
>
> I then call pcm_drop to close the pcm device, followed by
> snd_pcm_hw_params(pcm_handle, hwparams) which should properly apply the
> configuration. Instead I get:
>
> interval.c:108: snd_interval_refine_min: Assertion `!snd_interval_empty(i)'
> failed.
> Aborted
>
> How do I go about fixing this problem?
that means a parameter (perhaps sample rate?) has no valid value in
the configuration space.
you should check whether the sample rate you pass is supported by the
hardware, or try to use *_near() function to set the nearest
parameter.
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-16 10:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-11 20:18 Assertion `!snd_interval_empty(i)' failed Garrett Kajmowicz
2003-07-16 10:34 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.