Пример #1
0
        public PlayableHitsound(MapAssetStore assetStore, SampleControlPoint samplePoint, List <SoundInfo> samples,
                                ISoundPool soundPool)
        {
            this.soundTable = assetStore.SoundTable;
            this.soundPool  = soundPool;

            hitsoundAudio.AddRange(ExtractAudio(assetStore, samples));

            volume = samplePoint.Volume;
        }
Пример #2
0
        public SoundPool(ISoundTable soundTable, int poolSize = 16, int persistentPoolSize = 4)
        {
            this.soundTable = soundTable;

            for (int i = 0; i < poolSize; i++)
            {
                pool.Add(CreateEffectController());
            }
            for (int i = 0; i < persistentPoolSize; i++)
            {
                persistentPool.Add(CreateEffectController());
            }

            SetVolume(1f);
        }
Пример #3
0
 public MapAssetStore(IPlayableMap map, ISoundTable fallbackSoundTable) : base(map.Detail.Mapset.Directory)
 {
     Map        = map;
     SoundTable = new MapSoundTable(fallbackSoundTable);
 }
Пример #4
0
 public MapSoundTable(ISoundTable fallback)
 {
     this.fallback = fallback;
 }