mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
16 lines
416 B
Objective-C
16 lines
416 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#import "PSCoding.h"
|
|
|
|
@interface TGAudioWaveform : NSObject <NSCoding, PSCoding>
|
|
|
|
@property (nonatomic, strong, readonly) NSData *samples;
|
|
@property (nonatomic, readonly) int32_t peak;
|
|
|
|
- (instancetype)initWithSamples:(NSData *)samples peak:(int32_t)peak;
|
|
- (instancetype)initWithBitstream:(NSData *)bitstream bitsPerSample:(NSUInteger)bitsPerSample;
|
|
|
|
- (NSData *)bitstream;
|
|
|
|
@end
|