protected void PollMusic()
{
lock (_mutex)
{
byte newTempo;
if (_onNextPoll.MusicToProcess != _currentMusic)
LoadNewMusic();
_aktTime += _tempo;
for (byte cnt = 0; cnt < _numberOfChannels; cnt++)
{
newTempo = _channels[cnt].Process((ushort)(_aktTime >> 16));
if (newTempo!=0)
{
_musicTempo1 = newTempo;
UpdateTempo();
}
}
_aktTime &= 0xFFFF;
}
}