-
Notifications
You must be signed in to change notification settings - Fork 7
/
AudioItem.h
69 lines (42 loc) · 1.35 KB
/
AudioItem.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// AudioItem.h
// Snap
//
// Created by Abdullah Bakhach on 9/7/12.
// Copyright (c) 2012 Hollance. All rights reserved.
//
#import <Foundation/Foundation.h>
#include "VirtualRingBuffer.h"
#define ITEM_CAPACITY 4194304 // limit item capacity to 4 megabytes
@interface AudioItem : NSObject
{
NSString * ID;
// metadata
NSString * title;
NSString * album;
NSString * artist;
NSString * duration;
UInt32 percentageFilled;
UInt32 timeStamp;
SInt64 startingByte;
SInt64 inStartingPacket;
AudioFileID audioFileID;
AudioStreamBasicDescription dataFormat;
@public
CFURLRef cfURL;
NSString * URLString;
}
@property (retain, readwrite) NSString *ID;
@property (retain, readwrite) NSString *title;
@property (retain, readwrite) NSString * album;
@property (retain, readwrite) NSString * artist;
@property (retain, readwrite) NSString * duration;
@property (retain, readwrite) NSString * URLString;
@property (assign, readwrite) CFURLRef cfURL;
@property (assign, readwrite) UInt32 percentageFilled;
@property (assign, readwrite) UInt32 timeStamp;
@property (assign, readwrite) SInt64 inStartingPacket;
@property (assign, readwrite) AudioFileID audioFileID;
@property (assign, readwrite) SInt64 startingByte;
-(id)initWithID:(NSString *)itemID;
@end