Re: [AD] Sound API

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Ben Davis wrote:
Chris, would you be willing to do new patches that just keep the DirectX mixer for emergencies as described?

It's not really so much that it'll take work to keep the DX mixer there, it's just that the new mixer streams will do nothing when the DX mixer is active. Since the mixer streams are controlled by the mixer function, the mixer function needs to be called to have any effect (without this, two calls to set_mixer_stream_buffer will cause subsequent calls, as well as calls to mixer_stream_is_ready, to fail indefinately.. not to mention it won't produce any sound since Allegro's mixer is never processed or outputed).

And in all actuality, there's no reason why the DX mixer will be needed for emergencies since the Allegro-DX mixer does the same thing, except it just preallocates one looping DX voice, pipes Allegro's mixer output to it, and sends all voice requests to Allegro's mixer as every other driver (sans the DX one) does.

The new mixer currently doesn't *need* to have the DX mixer dropped to go in. However, for the future changes I want to do, as well as having the mixer streams work, it will have to be dropped.

- Kitty Cat




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/