   Using audio paths in DX 8.0
  There must be something about audio paths that I'm not understanding.I'm trying to build a flexible Music class that allows the programmer to load MIDI files and play them easily. I'm making a system in which each midi file has its own audio path instead of playing to the default path. When I try to download the instruments to the audio path instead to the performance object, the midi only plays one instrument instead of all of them like it's supposed to do normally. Here's some code snippets that I think may be of concern (This is not all the code of course):  // Create segmentif (FAILED(m_Audio->GetLoaderCOM()->GetObject(&dmod, IID_IDirectMusicSegment8, (LPVOID *) &m_DMSegment))) return FALSE;// Download segment instruments to audio pathif (FAILED(m_Audio->GetPerformanceCOM()->CreateStandardAudioPath(DMUS_APATH_SHARED_STEREOPLUSREVERB, 1, TRUE, &m_DMAudioPath))) return FALSE;if (FAILED(m_DMSegment->Download(m_DMAudioPath))) return FALSE;// Play the segmentif (FAILED(m_Audio->GetPerformanceCOM()->PlaySegmentEx(m_DMSegment, NULL, NULL, 0, 0, NULL, m_DMAudioPath, m_DMAudioPath))) return FALSE;It will only play one of the instruments in the MIDI. It plays the MIDI just fine when I download the performance instead. So, can anyone explain what's happening? Am I even using audio paths right?Also, let's say I wanted to play multiple MIDI files at one time on different audio paths. Would I need to use the DMUS_SEGF_SECONDARY flag in the PlaySegmentEx function? I think I tried it once, but the song played about half the speed.   ---n00bHaTeR: i got fired todaygamer2000: lol!noobHaTeR: [edited by - Weston on February 4, 2004 11:39:26 PM]
  And the answer is...I set the number of music channels to 1 when I created the audio path. So... now I have a different question. When I stop the MIDI from playing, then start it again, it sounds like it stutters in the beginning. Is it something to do with the timing that's not correct?---n00bHaTeR: i got fired todaygamer2000: lol!noobHaTeR:  [edited by - Weston on February 5, 2004 7:39:32 PM]