From: Adam Tla/lka <atlka@pg.gda.pl>
To: alsa-devel@lists.sourceforge.net
Subject: ALSA mixing capability
Date: Thu, 11 Dec 2003 10:49:54 +0100 [thread overview]
Message-ID: <3FD83DC2.6090502@pg.gda.pl> (raw)
Welcome
I'm using ALSA 1.0.0rc2 on snd_intel8x0 and .asoundrc:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pcm.mix {
type dmix
ipc_key 321456 # any unique value
ipc_key_add_uid true
slave {
pcm "hw:0,0"
periods 0
period_time 0
period_size 1024 # must be power of 2
buffer_size 4096 # ditto
}
bindings {
0 0
1 1
}
}
ctl.mix { type hw card 0 }
pcm.dsp0 { type plug slave.pcm "mix" }
ctl.mixer0 { type hw card 0 }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My problem:
when using wavplay with OSS ALSA emulation playing 22050 and 11025 Hz
.wav files works OK
but with AOSS lib using pcm.dsp0 defined above I can't play 11025 Hz
.wav file:
$ aoss wavplay lburn2.wav
Pathname: lburn2.wav
Device: /dev/dsp
Sampling Rate: 11025 Hz
Mode: Mono
Samples: 5999
Bits: 8
Unable to set audio sampling rate
but 22050 HZ .wav is played correctly.
So my question is how properly compose .asoundrc file so we could mix
all sound sources which use ALSA natively
through -Dmix virtual device and OSS apps routed through AOSS lib? Is
this possible? Is this explained somewhere?
Next case is a possibility to create a virtual mixer so ctl.mix
virtually sets level of particular source before mixing
it with others sources so playind applications could set volumen of only
his source. Is that possible?
I thing that solution should be a snd kernel module which does this jobs
(mixing and correcly setting volume level independently
for all apps, using hardware mixing if possible and software if not, DMA
mapping etc.) which lays below OSS pcm emulation
module and pcm0p device and above hardware so no configuration changes
in all apps are needed.
If it will working as a kernel high priority thread then some latency
problems will gone too.
Regards
--
Adam Tla/lka mailto:atlka@pg.gda.pl ^v^ ^v^ ^v^
Computer Center, Technical University of Gdansk, Poland
PGP public key: finger atlka@sunrise.pg.gda.pl
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
next reply other threads:[~2003-12-11 9:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-11 9:49 Adam Tla/lka [this message]
2003-12-11 10:01 ` ALSA mixing capability Jaroslav Kysela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3FD83DC2.6090502@pg.gda.pl \
--to=atlka@pg.gda.pl \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.