Doomulation
?????????????????????????
Another problem has appears and i'm clueless without any demonstrations...
All do we know that tempo might change during playback of a segment (the output of a file loaded into directmusic). Therefore, to obtain the length of the file, which is returned in music time, which changes with tempo, i need to get the tempo to convert the music time to time of which we can understand.
From what i get, the way to do this would be this:
However, the last paramenter, the argument of where to send the variable to get the data returned, is void*.
Sending a int or long or any other data-type like that will not work here. It must be a data-type of the type _DMUS_TEMPO_PARAM. But the problem is...i cannot convert this paramenter to void*.
So how the hell do i get the tempo? That's what i wonder.
All do we know that tempo might change during playback of a segment (the output of a file loaded into directmusic). Therefore, to obtain the length of the file, which is returned in music time, which changes with tempo, i need to get the tempo to convert the music time to time of which we can understand.
From what i get, the way to do this would be this:
PHP:
_DMUS_TEMPO_PARAM tpTime;
hr = g_pPerformance->GetParam( GUID_TempoParam , 0xFFFFFFFF,
DMUS_SEG_ALLTRACKS, 0, NULL, (void*)tpTime );
However, the last paramenter, the argument of where to send the variable to get the data returned, is void*.
Sending a int or long or any other data-type like that will not work here. It must be a data-type of the type _DMUS_TEMPO_PARAM. But the problem is...i cannot convert this paramenter to void*.
So how the hell do i get the tempo? That's what i wonder.