Posted: Fri Feb 26, 2010 3:31 pm
I'll try to translate the example to ZGE:
Now channels holds the nr of channels, and instrument the nr of instruments.
Then to get the volume of the channels to an array called ChannelVolume:
And for instruments:
Code: Select all
DWORD WINAPI BASSMOD_MusicGetVolume(
DWORD chanins
);
Code: Select all
//ZExternalLibray definition
int BASSMOD_MusicGetVolume(int chaninds) { }
Code: Select all
int channels=0,instruments=0;
while (BASSMOD_MusicGetVolume(channels)!=-1) channels++;
while (BASSMOD_MusicGetVolume(0x00010000 | instruments)!=-1) instruments++;
Then to get the volume of the channels to an array called ChannelVolume:
Code: Select all
for(int i=0; i<channels; i++)
ChannelVolume[i] = BASSMOD_MusicGetVolume(i)
Code: Select all
for(int i=0; i<instruments; i++)
InstrumentVolume[i] = BASSMOD_MusicGetVolume(0x00010000 | i)