public override void Stop()
{
lock (_syncRoot)
{
if (_mixer == null)
{
Log.Debug("BASS: Already stopped. Don't execute Stop a second time");
return;
}
lock (_commandQueueSync)
{
QueueItem item = new QueueItem();
item.cmd = PlaybackCommand.Stop;
_commandQueue.Add(item);
}
_commandNotify.Set();
}
_commandRegistered.Wait();
}