示例#1
0
 public void Play(SecondaryBuffer buffer, Thing thing)
 {
     // �V�����X�P�Anull���ǂ����`�F�b�N���Ȃ���Ȃ��Ƃ͉�����
     if (device == null) return;
     if (numChannels == MAX_NUM_CHANNELS) return;
     channels[numChannels] = new GameSoundChannel(buffer.Clone(device), thing);
     channels[numChannels].Buffer.Pan = CalcPan(thing);
     channels[numChannels].Buffer.Volume = CalcVolume(thing);
     channels[numChannels].Buffer.Play(0, BufferPlayFlags.Default);
     numChannels++;
 }
示例#2
0
 public void Play(SecondaryBuffer buffer, Thing thing)
 {
     // シュンスケ、nullかどうかチェックしなきゃならんとは何事だ
     if (device == null)
     {
         return;
     }
     if (numChannels == MAX_NUM_CHANNELS)
     {
         return;
     }
     channels[numChannels]               = new GameSoundChannel(buffer.Clone(device), thing);
     channels[numChannels].Buffer.Pan    = CalcPan(thing);
     channels[numChannels].Buffer.Volume = CalcVolume(thing);
     channels[numChannels].Buffer.Play(0, BufferPlayFlags.Default);
     numChannels++;
 }