/// <summary> /// Initialises a new instance of filter_audio. /// </summary> /// <param name="sampleRate"></param> public FilterAudio(int sampleRate) { _sampleRate = sampleRate; _filterAudio = FilterAudioFunctions.NewFilterAudio((uint)sampleRate); }
internal static extern int EnableDisableFilters(FilterAudioHandle filterAudio, int echo, int voice, int grain);
internal static extern int SetEchoDelayMs(FilterAudioHandle filterAudio, short msInSndCardBuf);
internal static extern int PassAudioOutput(FilterAudioHandle filterAudio, short[] data, uint samples);
internal static extern int FilterAudio(FilterAudioHandle filterAudio, short[] data, uint samples);