Exemplo n.º 1
0
        private void trackBarSpeed_Scroll(object sender, System.EventArgs e)
        {
            // in Hz
            Bass.BASS_ChannelSetAttribute(_StreamFX, BASSAttribute.BASS_ATTRIB_TEMPO_FREQ, (float)trackBarSpeed.Value);

            // get the resulting ratio...
            float ratio = BassFx.BASS_FX_TempoGetRateRatio(_StreamFX);

            this.labelRatio.Text = String.Format("{0}", ratio);
        }