All of lore.kernel.org
 help / color / mirror / Atom feed
* dmix vs alsaplayer [was jackd, zynaddsubfx and iiwusynth]
       [not found] ` <200303031203.36434.donburton@sbcglobal.net>
@ 2003-03-03 18:27   ` Patrick Shirkey
  2003-03-03 18:59     ` Kai Vehmanen
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Shirkey @ 2003-03-03 18:27 UTC (permalink / raw)
  To: linux-audio-user, alsaplayer-devel,
	alsa-devel@lists.sourceforge.net

Levi Burton wrote:

> Has anyone tried the dmix plugin thats part of alsa rc8?  This looks 
> interesting, but im scared if I install rc8, I will be bitten by that 
> alsa-lib bug again.
> 

I was fscking around with it on Saturday. So far I have managed to use 
multiple instances of aplay but other apps like alsaplayer bork at it. I 
have yet to figure out why but I think I should probably submit a bug 
report somewhere.

I had to remove /dev/dsp otherwise alsaplayer will use the oss drivers.

Both of these commands give the same error.

$ alsaplayer -o alsa -d "plug:'dmix:RATE=44100'" track_8.wav
$ alsaplayer -o alsa -d plug:\'dmix:SLAVE=\"hw:2,1\",RATE=44100\' 
track_8.wav

--------
error on set_period_size (512)
Unavailable hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (125011 125012)
PERIOD_SIZE: 5513
PERIOD_BYTES: 22052
PERIODS: (2 3)
BUFFER_TIME: (371519 371520)
BUFFER_SIZE: 16384
BUFFER_BYTES: 65536
TICK_TIME: ALL
error on set_period_size (1024)
Unavailable hw params:
ACCESS:  RW_INTERLEAVED
FORMAT:  S16_LE
SUBFORMAT:  STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (125011 125012)
PERIOD_SIZE: 5513
PERIOD_BYTES: 22052
PERIODS: (2 3)
BUFFER_TIME: (371519 371520)
BUFFER_SIZE: 16384
BUFFER_BYTES: 65536
TICK_TIME: ALL
failed to configure output device...trying OSS
error opening /dev/dsp

I could not find a suitable output module on your
system. Make sure they're in "/usr/local/lib/alsaplayer/output/".
Use the -o parameter to select one.

failed to load output plugin (alsa). exitting...
--------

-- 
Patrick Shirkey - Boost Hardware Ltd.
Http://www.boosthardware.com
Http://www.djcj.org - The Linux Audio Users guide
========================================

Being on stage with the band in front of crowds shouting, "Get off! No! 
We want normal music!", I think that was more like acting than anything 
I've ever done.

Goldie, 8 Nov, 2002
The Scotsman



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

* Re: dmix vs alsaplayer [was jackd, zynaddsubfx and iiwusynth]
  2003-03-03 18:27   ` dmix vs alsaplayer [was jackd, zynaddsubfx and iiwusynth] Patrick Shirkey
@ 2003-03-03 18:59     ` Kai Vehmanen
  2003-03-03 19:35       ` Jaroslav Kysela
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Vehmanen @ 2003-03-03 18:59 UTC (permalink / raw)
  To: Patrick Shirkey
  Cc: linux-audio-user, alsaplayer-devel,
	alsa-devel@lists.sourceforge.net

On Tue, 4 Mar 2003, Patrick Shirkey wrote:

>> Has anyone tried the dmix plugin thats part of alsa rc8?  This looks 
> I was fscking around with it on Saturday. So far I have managed to use 
> multiple instances of aplay but other apps like alsaplayer bork at it. I 
> have yet to figure out why but I think I should probably submit a bug 
> report somewhere.

I've tried it with ecasound and seems to work just fine. One catch is that 
dmix only supports a certain set of audio format parameters at a time. You 
can change these via asoundrc (or dmix:x,y), but not at run time. Anyway, 
with default dmix installation (on top of snd-intel8x0 hw):

ecasound -i foo.wav -o alsa,dmix -b:4096 &
ecasound -i bar.wav -o alsa,dmix -b:4096

... plays the two files at the same time. -b:4096 is needed because of the 
abovementioned reasons.

> $ alsaplayer -o alsa -d plug:\'dmix:SLAVE=\"hw:2,1\",RATE=44100\' 
> track_8.wav
[...]
> PERIOD_SIZE: 5513
> PERIOD_BYTES: 22052
[...]
> error on set_period_size (1024)
> Unavailable hw params:

Try matching the alsaplayer period_size to the one used by dmix with 
the "-f 22052" alsaplayer option. 

PS Opening dmix in non-interleaved mode produces totally garbled output:
   "ecasound -i foo.wav -f:16,2,44100,n -o alsa,dmix -b:4096"

--
 http://www.eca.cx
 Audio software for Linux!



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

* Re: dmix vs alsaplayer [was jackd, zynaddsubfx and iiwusynth]
  2003-03-03 18:59     ` Kai Vehmanen
@ 2003-03-03 19:35       ` Jaroslav Kysela
  0 siblings, 0 replies; 3+ messages in thread
From: Jaroslav Kysela @ 2003-03-03 19:35 UTC (permalink / raw)
  To: Kai Vehmanen
  Cc: Patrick Shirkey, linux-audio-user@music.columbia.edu,
	alsaplayer-devel@lists.tartarus.org,
	alsa-devel@lists.sourceforge.net

On Mon, 3 Mar 2003, Kai Vehmanen wrote:

> Try matching the alsaplayer period_size to the one used by dmix with 
> the "-f 22052" alsaplayer option. 

alsaplayer doesn't accept resolution other than multiple of 32 bytes

> 
> PS Opening dmix in non-interleaved mode produces totally garbled output:
>    "ecasound -i foo.wav -f:16,2,44100,n -o alsa,dmix -b:4096"

Works here - using standard stereo device.

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

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

end of thread, other threads:[~2003-03-03 19:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <NDBBLGIKBJENLAMOLFHGAEIABJAB.mknecht@controlnet.com>
     [not found] ` <200303031203.36434.donburton@sbcglobal.net>
2003-03-03 18:27   ` dmix vs alsaplayer [was jackd, zynaddsubfx and iiwusynth] Patrick Shirkey
2003-03-03 18:59     ` Kai Vehmanen
2003-03-03 19:35       ` 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.