mirror of
https://github.com/danog/Telegram.git
synced 2024-12-03 09:57:46 +01:00
16 lines
416 B
C
16 lines
416 B
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
|