protected override void PlayNativeMusic() { if (musicStream == null || source == null) { return; } musicStream.Rewind(); source.Start(); isPlaying = true; playStartTime = DateTime.Now; }
protected override void PlayNativeMusic() { musicStream.Rewind(); for (int index = 0; index < NumberOfBuffers; index++) { if (!Stream(buffers[index])) { break; } } openAL.Play(channelHandle); playStartTime = DateTime.Now; }
public void Play() { musicStream.Rewind(); for (int index = 0; index < NumberOfBuffers; index++) { if (!Stream()) { break; } } source.Play(); playStartTime = DateTime.Now; }