Пример #1
0
        public Recording(RecordingDevice Device = null, Resolution BufferKind = Resolution.Short)
            : base(BufferKind)
        {
            if (Device == null)
            {
                Device = RecordingDevice.DefaultDevice;
            }

            Device.Initialize();
            DeviceIndex = Device.DeviceIndex;

            Bass.CurrentRecordingDevice = DeviceIndex;

            RecordProcedure = new RecordProcedure(Processing);

            Handle = Bass.StartRecording(44100, 2, BassFlags.RecordPause | BassFlags.Float, RecordProcedure);
        }