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

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(uint16_t, YCKAudioFilterType)
{
    YCKAudioFilterTypeRnnoise        = 1,
    YCKAudioFilterTypeSpeexNoise     = 2,
    YCKAudioFilterTypeSpeexAEC       = 3,
    YCKAudioFilterTypeAEC3           = 4,
    YCKAudioFilterTypeSimpleGain     = 5,
    YCKAudioFilterTypeRecorder       = 6,
};

@protocol YCKAudioFilterProtocol <NSObject>

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

@end


NS_ASSUME_NONNULL_END
