First import.

This commit is contained in:
Damiano Galassi committed 2013-11-01 10:20:09 +01:00
1 parent 4e61250dc6
commit 796e9691ce
114 files changed
+37004 -44

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
//
// MP42ChapterTrack.h
// Subler
//
// Created by Damiano Galassi on 06/02/09.
// Copyright 2009 Damiano Galassi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "MP42Track.h"
@class SBTextSample;
@interface MP42ChapterTrack : MP42Track <NSCoding> {
NSMutableArray *chapters;
}
- (instancetype)initWithSourceURL:(NSURL *)URL trackID:(NSInteger)trackID fileHandle:(MP42FileHandle)fileHandle;
+ (instancetype)chapterTrackFromFile:(NSURL *)URL;
- (void)addChapter:(NSString *)title duration:(uint64_t)timestamp;
- (void)removeChapterAtIndex:(NSUInteger)index;
- (void)setTimestamp:(MP42Duration)timestamp forChapter:(SBTextSample *)chapterSample;
- (void)setTitle:(NSString*)title forChapter:(SBTextSample *)chapterSample;
- (SBTextSample *)chapterAtIndex:(NSUInteger)index;
- (NSInteger)chapterCount;
- (BOOL)exportToURL:(NSURL *)url error:(NSError **)error;
@property(nonatomic, readonly, retain) NSArray *chapters;
@end