mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
45 lines
1.2 KiB
Objective-C
Executable File
45 lines
1.2 KiB
Objective-C
Executable File
//
|
|
// STKQueueEntry.h
|
|
// StreamingKit
|
|
//
|
|
// Created by Thong Nguyen on 30/01/2014.
|
|
// Copyright (c) 2014 Thong Nguyen. All rights reserved.
|
|
//
|
|
|
|
#import "STKDataSource.h"
|
|
#import "libkern/OSAtomic.h"
|
|
#import "AudioToolbox/AudioToolbox.h"
|
|
|
|
@interface STKQueueEntry : NSObject
|
|
{
|
|
@public
|
|
OSSpinLock spinLock;
|
|
|
|
BOOL parsedHeader;
|
|
Float64 sampleRate;
|
|
double packetDuration;
|
|
UInt64 audioDataOffset;
|
|
UInt64 audioDataByteCount;
|
|
UInt32 packetBufferSize;
|
|
volatile Float64 seekTime;
|
|
volatile SInt64 framesQueued;
|
|
volatile SInt64 framesPlayed;
|
|
volatile SInt64 lastFrameQueued;
|
|
volatile int processedPacketsCount;
|
|
volatile int processedPacketsSizeTotal;
|
|
AudioStreamBasicDescription audioStreamBasicDescription;
|
|
}
|
|
|
|
@property (readonly) UInt64 audioDataLengthInBytes;
|
|
@property (readwrite, retain) NSObject* queueItemId;
|
|
@property (readwrite, retain) STKDataSource* dataSource;
|
|
|
|
-(id) initWithDataSource:(STKDataSource*)dataSource andQueueItemId:(NSObject*)queueItemId;
|
|
|
|
-(void) reset;
|
|
-(double) duration;
|
|
-(Float64) progressInFrames;
|
|
-(double) calculatedBitRate;
|
|
-(BOOL) isDefinitelyCompatible:(AudioStreamBasicDescription*)basicDescription;
|
|
|
|
@end |