Original Post
Hey. i hope someone can help me out cuz i am really stumped.
I''m using DirectMusic and DirectX 8 and i''m trying to play a wav file that is about 50megs. I''ve used the Tutorial that was supplied on this site ( http://www.gamedev.net/reference/articles/article1689.asp ), as well as a few others. My code is almost identical to the tutorial, and my code compiles fine. but when i try to run it the music won''t play and in debug mode i get this error:
DMIME: IDirectMusicTrack:
layEx: Invalid pointer pStateData
I assume that has something to do with my playSegemtEx call so here is that too:
m_pDirectAudioPerformance->PlaySegmentEx(m_pDirectAudioSegment, NULL, NULL, 0, 0, m_pSegmentState, NULL, NULL);
where m_pSegmentState = NULL; and is of type IDirectMusicSegmentState**
I''ve tried just replacing that with NULL in the call but the same thing happens. I''ve also tried using playSegment but the same error shows up. And i''ve tried with smaller wav files, just to make sure, to no effect.
I don''t know what else to do, any idea''s?
Thanks
T