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; }
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); }
public MapAssetStore(IPlayableMap map, ISoundTable fallbackSoundTable) : base(map.Detail.Mapset.Directory) { Map = map; SoundTable = new MapSoundTable(fallbackSoundTable); }
public MapSoundTable(ISoundTable fallback) { this.fallback = fallback; }