Mail Archives: djgpp/1998/09/23/11:51:34
> Bad code:
>
> MIDI *the_music;
> the_music = load_midi(datafile[MUSIC].dat);
>
> play_midi(the_music, TRUE);
> OK code:
>
> MIDI *the_music;
> the_music = load_midi("mysong.mid");
>
> play_midi(the_music, TRUE);
>
>
> What am I doing wrong?
You don't need to load anything from a datafile (since it it loaded
already).
Change the second line above to:
the_music = (MIDI*)datafile[MUSIC].dat;
HTH
James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819
- Raw text -