-
Notifications
You must be signed in to change notification settings - Fork 7
/
AudioFile.h
33 lines (26 loc) · 1.05 KB
/
AudioFile.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
//
// AudioFile.h
// Snap
//
// Created by Abdullah Bakhach on 8/9/12.
// Copyright (c) 2012 Hollance. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
#import <MediaPlayer/MediaPlayer.h>
@interface AudioFile : NSObject {
AudioFileID fileID; // the identifier for the audio file to play
AudioStreamBasicDescription format;
UInt64 packetsCount;
UInt32 maxPacketSize;
SInt64 inStartingPacket;
}
@property (readwrite) AudioFileID fileID;
@property (readwrite) UInt64 packetsCount;
@property (readwrite) UInt32 maxPacketSize;
@property (readwrite) AudioStreamBasicDescription format;
@property (readwrite) SInt64 inStartingPacket;
- (id) initWithURL: (CFURLRef) url;
- (id) initWithID:(AudioFileID)id;
- (AudioStreamBasicDescription *)audioFormatRef;
@end