//
//  NXAudioFilter.h
//  NXCall
//
//  Created by 徐家骏 on 2019/4/28.
//  Copyright © 2019 徐家骏. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(uint16_t, NXAudioFilterType)
{
    NXAudioFilterTypeRnnoise        = 1,
    NXAudioFilterTypeSpeexNoise     = 2,
    NXAudioFilterTypeSpeexAEC       = 3,
    NXAudioFilterTypeAEC3           = 4,
    NXAudioFilterTypeSimpleGain     = 5,
    NXAudioFilterTypeRecorder       = 6,
};

@protocol NXAudioFilterProtocol <NSObject>

- (NXAudioFilterType) filterType;
- (void) filterAudio:(char *)buffer ofSize:(int)size;
- (void) filterAudio:(char *)buffer ofSize:(int)size isMusic:(BOOL)isMusic;

@end


NS_ASSUME_NONNULL_END
