상속: IAudioStream
예제 #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);
     }
 }
예제 #2
0
파일: Music.cs 프로젝트: scemino/nscumm
 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);
     }
 }