//
//  CSTimedOutputBuffer.h
//  CocoaSplit
//
//  Created by Zakk on 4/2/16.
//

#import <Foundation/Foundation.h>
#import "VideoCompressor.h"
#import "CSOutputBase.h"
#import "CSIRCompressor.h"


@interface CSTimedOutputBuffer : NSObject
{
    NSMutableArray *_frameBuffer;
    float _currentBufferDuration;
    
}



@property (assign) float bufferDuration;
@property (strong) NSString *name;
@property (strong) CSIRCompressor *compressor;

-(void) writeCurrentBuffer:(NSString *)toFile;
-(void) writeCurrentBuffer:(NSString *)toFile withCompletionBlock:(void (^)(void))completionBlock;

-(instancetype) initWithCompressor:(id<VideoCompressor>)compressor;


@end
