You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
579 B
22 lines
579 B
11 years ago
|
//
|
||
|
// AudioFile.h
|
||
|
// SpectogramPrototype
|
||
|
//
|
||
|
// Created by Joshua Moerman on 28/12/13.
|
||
|
// Copyright (c) 2013 Joshua Moerman. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
// Uses the ExtAudioFileRef from the AudioToolkit
|
||
|
// Handles conversion to PCM and such
|
||
|
@interface AudioFile : NSObject
|
||
|
|
||
|
// Loads a file (and sets the right internal format)
|
||
|
+ (AudioFile*) audioFileFromURL:(NSURL*) url;
|
||
|
|
||
|
// Reads nSamples of data (left channel), return actual number of samples read
|
||
|
- (unsigned int) fillArray:(float*)array withNumberOfSamples:(unsigned int)nSamples;
|
||
|
|
||
|
@end
|