| 123456789101112131415161718192021222324252627 |
- //
- // KSRealtimeAnalyzer.h
- // KulexiuSchoolStudent
- //
- // Created by 王智 on 2024/7/29.
- //
- #import <Foundation/Foundation.h>
- #import <AVFoundation/AVFoundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface KSRealtimeAnalyzer : NSObject
- @property (nonatomic, assign) BOOL isAnalise; // 是否正在分析中
- @property (nonatomic, assign) NSInteger frequencyBands; // 频带数量
- @property (nonatomic, assign) float startFrequency; // 起始频率
- @property (nonatomic, assign) float endFrequency; // 截止频率
- @property (nonatomic, assign) float spectrumSmooth; // 频谱平滑
- - (instancetype)initWithFFTSize:(NSInteger)fftSize;
- - (NSArray<NSArray<NSNumber *> *> *)analyseWithBuffer:(AVAudioPCMBuffer *)buffer;
- @end
- NS_ASSUME_NONNULL_END
|