コード例 #1
0
 public void Load(int sampleOffset)
 {
     playing           = false;
     StreamSourceVoice = new StreamSourceVoice(system.AudioDevice);
     StreamSourceVoice.SetupBuffer(this, false, sampleOffset);       // no looping by default, we can change this later
     StreamSourceVoice.StreamStoppedAnyReason += (o, e) => { playing = false; };
 }
コード例 #2
0
 public void Dispose()
 {
     StreamSourceVoice.Dispose();
     StreamSourceVoice = null;
 }
コード例 #3
0
 public DummySourceVoiceSlot(StreamSourceVoice streamSourceVoice)
 {
     CurrentSourceVoice = streamSourceVoice;
 }
コード例 #4
0
 public void Load(int sampleOffset)
 {
     playing = false;
     StreamSourceVoice = new StreamSourceVoice(system.AudioDevice);
     StreamSourceVoice.SetupBuffer(this, false, sampleOffset);       // no looping by default, we can change this later
     StreamSourceVoice.StreamStoppedAnyReason += (o, e) => { playing = false; };
 }