예제 #1
0
        public override void Dispose()
        {
            if (FBTrack != null)
            {
                isValid = false;
                FBTrack.Dispose();
                FBTrack = null;
            }

            base.Dispose();
        }
예제 #2
0
        void InitBTrack()
        {
            isValid = false;

            if (FBTrack != null)
            {
                FBTrack.Dispose();
                FBTrack = null;
            }

            // TODO: warn, when samplerate is not 44100 Hz
            if (SampleRate == 44100 && BufferSize >= 2)
            {
                FBTrack = new BTrack(/*int)(BufferSize * 0.5)*/ BufferSize, BufferSize);
                isValid = true;
            }
        }