File: programming/cocoa/UKSoundUKSystemSound.zip/UKSystemSound.h


//
//  UKSystemSound.h
//  iPhoneTestApp
//
//  Created by Uli Kusterer on 19.06.08.
//  Copyright 2008 The Void Software. All rights reserved.
//
 
/*
	An NSSound-like class for the iPhone OS.
*/
 
#import <UIKit/UIKit.h>
#import <AudioToolbox/AudioToolbox.h>
 
 
@class UKSystemSound;
 
 
@protocol UKSystemSoundDelegate
 
@optional
 
-(void)	sound: (UKSystemSound *)sound didFinishPlaying: (BOOL)aBool;
 
@end
 
 
@interface UKSystemSound : NSObject
{
	BOOL						soundIDValid;
	SystemSoundID				systemSoundID;
	id<UKSystemSoundDelegate>	delegate;
}
 
-(id)	initWithContentsOfURL: (NSURL*)fileURL byReference: (BOOL)ignored;	// CAF, AIFF or WAV files only.
 
@property (nonatomic,assign) id<UKSystemSoundDelegate> delegate;
 
-(void)	play;
 
@end

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.