1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGAudioWaveform.h

16 lines
416 B
C
Raw Normal View History

2016-02-25 01:03:51 +01:00
#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