Re: [AD] Allegro's mixer, update

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


Elias Pschernig wrote:
Well, char *str="[sound]quality=2"; override_config_data(str);
install_sound(..); always worked. There's no way currently to change it
after install_sound though - but would fit into KCat's new functions, I
think.

Sorry for not getting to this sooner. I could easilly add a function to change/get the resample quality. The mixer streams would like this fine and update in real time. However, the actual voices no longer would since I switched them to using function pointers. At the time I did that (very early on), I was repeating the same change I did when I was toying with the mixer back in the 3.x era. I figured that using a function pointer would be a bit faster than having to do at least 3, potentially 4 or 5, checks that wouldn't change for that voice (but would between voices, preventing good branch prediction). I could change it to do 1 check with 2 function pointers (or potentially 2 checks with 3 pointers if the lq mixer stays around), though.

- Kitty Cat




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