Beispiel #1
0
        /// <summary>
        /// Construct a new drawable sample instance.
        /// </summary>
        /// <param name="sample">The audio sample to wrap.</param>
        /// <param name="disposeSampleOnDisposal">Whether the sample should be automatically disposed on drawable disposal/expiry.</param>
        public DrawableSample(ISample sample, bool disposeSampleOnDisposal = true)
            : base(sample, disposeSampleOnDisposal)
        {
            this.sample = sample;

            PlaybackConcurrency.BindTo(sample.PlaybackConcurrency);
        }
Beispiel #2
0
        internal SampleBass(SampleBassFactory factory, BassAudioMixer mixer)
        {
            this.factory = factory;
            this.mixer   = mixer;

            PlaybackConcurrency.BindTo(factory.PlaybackConcurrency);
        }
        internal SampleBass(SampleBassFactory factory)
        {
            this.factory = factory;

            PlaybackConcurrency.BindTo(factory.PlaybackConcurrency);
        }