コード例 #1
0
 public SoundLayerEffect(SoundServer sound_server, int track_number)
 {
     mSoundServer  = sound_server;
     mSoundPlayers = new Queue <AudioSource>(track_number);
     while (track_number > 0)
     {
         mSoundPlayers.Enqueue(mSoundServer.CreateSoundPlayer());
         track_number--;
     }
 }
コード例 #2
0
 public SoundLayerBackground(SoundServer sound_server)
 {
     mSoundServer = sound_server;
     mSoundPlayer = mSoundServer.CreateSoundPlayer();
 }