Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(xml.enterbranch("FM_PARAMETERS")) {
- const bool upgrade_3_0_3 = (xml.fileversion() < version_type(3,0,3)) && // <=== should this be "||"
- (xml.getparreal("FMvolume", -1) < 0);
- PFMVoice = xml.getpar("input_voice", PFMVoice, -1, nvoice - 1);
- if (upgrade_3_0_3) {
- int Pvolume = xml.getpar127("volume", 0);
- FMvolume = 100.0 * Pvolume / 127.0;
- } else {
- FMvolume = xml.getparreal("volume", FMvolume);
- }
Add Comment
Please, Sign In to add comment