Originally posted by: Haden
If you insist.
I can give you very simple example:
1. mplayer has plugin (called volume) which operates on sound stream to change its volume
2. alsaplayer has such algorithm build in
3. xmms arts plugin has similar algorithm build in
4. xmms alsa plugin has one too [btw, it is based on my patch which Havard took time to clean up/merge]
5. amarok has probably cleanest solution: arts supports effect attaching to stream, one of effects is StereoVolume
These are apps which I know for sure, xine/other probably has similar implementation or you aren't controling apps volume at all - you are controling pcm/main mixer.
How is it wrong?
Well, DS has BufferVolume method.
1. Affects sound mixer in ALSA by default.
2. ALSA, well, it's standard Linux by now, so what is the complaint?
3. By default XMMS will not use arts, so what is the problem, sure, you CAN use arts with it, you have a choice to do so, is that a negative thing?
4. See three, alsa will use the oss compability by default, you can change it if you want to.
5. WTF is amarok? Is it a KDE app i have never heard of? Why would i want to use it and why would i want to use arts when ALSA does the exact same thing.
ALSA is a big step forward which has left arts and e-sound as choice apps, there is no real reason to use either anymore, ALSA will do whatever you want it to do, you send the stream if you want to, to the default port and ALSA will handle it, Linux Standard Audio has become as easy to throughput streams as arts has ever been.
Besides, i am running fluxbox or XFCE4, no arts, no esound, streaming works just fine.
There is a choice to run sound servers for KDE and Gnome, it is not a necessety and as a programmer you can pretty much just forget about it and use ALSA instead, if you want to play it safe, use OSS, Alsa still supports legacy OSS ports.
I am still not getting what your complaint is, there IS a standard for Linux that works very well for all the aspects you have mentioned (and is a helluvalot easier to program for than DSound if you ask me) just like there is one for Win, BTW, there are still a legacy that Dsound is just another layer of, it directly interfaces with your hardware, just like ALSA USED to do ontop of Open Sound System in SUSE's application of it.
So you do have the same problem with Win, besides, what about midi, completely separate in Dsound (non-existent) while included in the same driver as the Digital Sound driver in ALSA, isn't that a smoother solution, as long as we are getting into sound apps and programming for sound, you cannot expect me to forget about MIDI. (if you are starting to program sound for Linux i suggest you take a look at the MIDI part of ALSA, it is extremely capable and can save you a lot of headache if you need it)
Wow, that was a rant, nothing personal against you though.
🙂