Inheritance: IAudioStream
Exemplo n.º 1
0
 public Music(IMixer mixer, string directory)
 {
     _mixer       = mixer;
     _sampleRate  = mixer.OutputRate;
     _volumeL     = _volumeR = 192;
     _soundHandle = _mixer.PlayStream(SoundType.Plain, this, -1, Mixer.MaxChannelVolume, 0, false, true);
     _handles     = new MusicHandle[2];
     for (int i = 0; i < _handles.Length; i++)
     {
         _handles[i] = new MusicHandle(directory);
     }
 }
Exemplo n.º 2
0
 public Music(IMixer mixer, string directory)
 {
     _mixer = mixer;
     _sampleRate = mixer.OutputRate;
     _volumeL = _volumeR = 192;
     _soundHandle = _mixer.PlayStream(SoundType.Plain, this, -1, Mixer.MaxChannelVolume, 0, false, true);
     _handles = new MusicHandle[2];
     for (int i = 0; i < _handles.Length; i++)
     {
         _handles[i] = new MusicHandle(directory);
     }
 }