Hi.
I am trying to play a polyphonic sound on Series 30 and 40 phones.
I load each instrument (converted to OTT from a MIDI file using Nokia's Sound Conversion tool) into a separate Sound object. I want to play these sounds simultaneously as they are all part of the same MIDI song, but on both emulator (3510i and Series 40 Concept), i get that the concurrent sound count is only 1, and truly only the last played sound is heard.
Does this mean that I can't play polyphonic sounds using the Nokia Sound API or am I doing something wrong.
Code:
byte[][] instruments = {.....}
// ..
      for (int i = 0; i < 6; i++) {
        s[i] = new Sound(instruments[i],Sound.FORMAT_TONE);
        s[i].init(instruments[i],Sound.FORMAT_TONE);
      }
      for (int i = 0; i < Sound.getConcurrentSoundCount(Sound.FORMAT_TONE); i++) {
        // only s[0] is being played because Sound.getConcurrentSoundCount(Sound.FORMAT_TONE) returns 1
        s[i].play(1);
      }