A bad sample scanner and cleaner will point out in the log whenever a bad sample, such as infinity, or Not a Number, or even huge values over ±2.0, in case some piece of code, or a decoder, or even a bad file, has taken over the output. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
16 lines
325 B
Objective-C
16 lines
325 B
Objective-C
//
|
|
// BadSampleCleaner.h
|
|
// CogAudio Framework
|
|
//
|
|
// Created by Christopher Snowhill on 2/15/22.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface BadSampleCleaner : NSObject
|
|
+ (void)cleanSamples:(float *)buffer amount:(NSUInteger)amount location:(NSString *)location;
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|