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--; } }
public SoundLayerBackground(SoundServer sound_server) { mSoundServer = sound_server; mSoundPlayer = mSoundServer.CreateSoundPlayer(); }