All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem writing to PCM plugin
@ 2004-08-11 13:33 Arve Knudsen
  2004-08-11 13:36 ` Jaroslav Kysela
  2004-08-11 13:45 ` Clemens Ladisch
  0 siblings, 2 replies; 7+ messages in thread
From: Arve Knudsen @ 2004-08-11 13:33 UTC (permalink / raw)
  To: alsa-devel@lists.sourceforge.net

I'm currently trying to implement support for user defined pcm plugins in  
PortAudio ALSA (ALSA-lib 1.05), and I've got as far as discovering the  
pcms. In order to test I defined a routing plugin, which moves data from  
channel 0/1 to 16/17 (S/PDIF) on my Hammerfall Lite. With aplay this  
plugin works just fine, but when I open it with PortAudio the same way as  
with any hardware device, the output is simply silent (I can't listen to  
any of the ADAT channels since I lack ADAT gear). Defining a simple plugin  
which does nothing but drive my onboard nForce2 (routing fails with this  
assertion: 'pcm_plug.c:363: snd_pcm_plug_change_channels: Assertion  
`snd_pcm_format_linear(slv->format)' failed') works the same as if I open  
the hw device.

The obvious difference to aplay I can think of is that we use floating  
point format in the PortAudio tests, so there is an intermediate  
conversion before the audio gets to the routing plugin. Could this be the  
cause of the problem? If you wish I can provide output from snd_pcm_dump.

Thanks

Arve Knudsen


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-08-11 15:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11 13:33 Problem writing to PCM plugin Arve Knudsen
2004-08-11 13:36 ` Jaroslav Kysela
2004-08-11 13:53   ` Arve Knudsen
2004-08-11 13:45 ` Clemens Ladisch
2004-08-11 14:00   ` Arve Knudsen
2004-08-11 15:06   ` Arve Knudsen
2004-08-11 15:03     ` Jaroslav Kysela

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.