Guest User

Untitled

a guest
Feb 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. if(xml.enterbranch("FM_PARAMETERS")) {
  2. const bool upgrade_3_0_3 = (xml.fileversion() < version_type(3,0,3)) && // <=== should this be "||"
  3. (xml.getparreal("FMvolume", -1) < 0);
  4.  
  5. PFMVoice = xml.getpar("input_voice", PFMVoice, -1, nvoice - 1);
  6. if (upgrade_3_0_3) {
  7. int Pvolume = xml.getpar127("volume", 0);
  8. FMvolume = 100.0 * Pvolume / 127.0;
  9. } else {
  10. FMvolume = xml.getparreal("volume", FMvolume);
  11. }
Add Comment
Please, Sign In to add comment