Some time ago, alsa began not to accept multiple pcm sound sources. I forgot when and what I did then.....anyway it's like OSS....
TIA





Youtube can only use Alsa !default.maverick6664 wrote:while only youtube is playing and audacious is turned on, it says "device busy" error. Doesn't it mean audacious uses alsa?
Code: Select all
pcm.!default {
type plug
slave {
pcm "dmixer"
}
rate_converter "samplerate_best"
hint {
show on
description "SPdif Out"
}
}
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm "hw:0,4"
format S32_LE
rate 44100
}
}
Code: Select all
$ cat /proc/asound/cards
0 [Loopback ]: Loopback - Loopback
Loopback 1
1 [CMI8738 ]: CMI8738-MC6 - C-Media CMI8738
C-Media CMI8738 (model 55) at 0xe400, irq 22
Code: Select all
$ cat /proc/asound/cards
0 [Loopback ]: Loopback - Loopback
Loopback 1
1 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xf9ffc000 irq 40Code: Select all
pcm.!default {
type hw
card Intel
}
ctl.!default {
type hw
card Intel
}
"hw" means hardware - you have deliberately disabled dmix.maverick6664 wrote:type hw
Mainly because of this :Dorsai! wrote:Why do you dislike dmix?
Default dmix buffer size is huge. And I have never been statisfied when trying to lower its value with the buffer_size statement. Particularily when resampling is needed.PaulBredbury's .asoundrc wrote:Code: Select all
buffer_size 16384

Haha, I've switched between 44100 and 48000 quite a few times, trying to find a reason for preferring one over the other.aCOSwt wrote:explicitely resample to 48K
But at the cost of some incompatibility, cpu power and configuration time. Also, to really achieve an improvement he would have to use a realtime kernel which again has it's own disadvantages for normal desktop use.aCOSwt wrote:Default dmix buffer size is huge. And I have never been statisfied when trying to lower its value with the buffer_size statement. Particularily when resampling is needed.
This leads to an unacceptable (for me) latency.
One can achieve the same with a sound server with considerably smaller buffers.
Code: Select all
pcm.!default {
type plug
slave {
pcm "dmixer"
}
rate_converter "samplerate_best"
hint {
show on
description "DMix Stereo Out"
}
}
pcm.dmixer {
type dmix
ipc_key 1024
ipc_perm 0666
slave {
pcm "hw:1,0"
format S32_LE
rate 48000
}
}I agree. Even more if applications used for that such a flash-player are not jack-api capable. And at the end of the say, as the vast majority of the associated materials do not care a damn of audio/video sync... who cares about latency...Dorsai! wrote:for listening to music, system sounds and watching youtube videos, jack is overkill.
When trying Mbrola Voices (~22K) => Espeak => Portaudio => dmix + rate 96K => Device 1 in // with Other_apps => Jackd (96K) => Device 2PaulBredbury wrote:So, what problem do you experience, in what apps? Be specific.

I dunno how important the word "theoretical" is there.aCOSwt wrote:theoretical latency of ~85ms.

You are correct.Dorsai! wrote:I don't understand why a latency coming from a buffer is not fixed? If it would "oscellate" the audio rate would have to change.
Data should leave the buffer exactly at "rate" and come into the buffer at exactly the rate the application puts it there.
No !Dorsai! wrote:Did you try OSS4 already?
I second you. I would even say that hardware mixing is compulsory for who targets live performances.whig wrote:For me the solution was having a sound card that does hardware mixing.