Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (17 sloc) 763 Bytes
// AudioShareSDK.h
// Copyright (C)2012 Jonatan Liljedahl
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface AudioShare : NSObject <UIAlertViewDelegate>
typedef void(^AudioShareImportBlock)(NSString *path);
+ (AudioShare*) sharedInstance;
// Export to AudioShare
- (BOOL) addSoundFromPath:(NSString*)path withName:(NSString*)name;
- (BOOL) addSoundFromURL:(NSURL*)url withName:(NSString*)name;
- (BOOL) addSoundFromData:(NSData*)data withName:(NSString*)name;
// Import from AudioShare
- (BOOL) initiateSoundImport;
- (BOOL) checkPendingImport:(NSURL*)url withBlock:(AudioShareImportBlock)block;
// Convenience utility that returns filename extension for path if it's an audio or midi file
+ (NSString*)findFileType:(NSString*)path;
@end