[AD] [WIN] MIDI sound restore at exit (fixed!) |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
Hello, it was a sillt mistake that was causing the MIDI to not restore properly it's cause this line id = (midi_driver->id & 0xFF) - 'A' - 1; must be this line id = (midi_driver->id & 0xFF) - 'A'; since with the first line, if we use the first midi driver we would get a id of -1 instead of 0 why windows doesn't complain? cause it's windows i guess :) that was causing the initial_volume to be always retrieved as 0xFFFFFFFF instead of the real one well, fixed
Attachment:
wmidi.dif
Description: video/dv
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |