Sound/SoundEffect.h

00001 //
00002 //  SoundEffect.h
00003 //  MacTrek
00004 //
00005 //  Created by Aqua on 03/07/2006.
00006 //  Copyright 2006 Luky Soft. All rights reserved.
00007 //
00008 
00009 #import <Cocoa/Cocoa.h>
00010 #import "QTKit/QTMovie.h"
00011 
00012 @interface SoundEffect : NSObject {
00013     QTMovie *sound;
00014     NSString *name;
00015 }
00016 
00017 // low level api
00018 -(id) initSound:(QTMovie *)newSound withName:(NSString *)newName;
00019 -(QTMovie *)sound;
00020 -(NSString *)name;
00021 -(void) setSound:(QTMovie *)newSound;
00022 -(void) setName:(NSString *)newName;
00023 
00024 // high level api
00025 -(bool) loadSoundWithName:(NSString*)soundName;
00026 -(void) playWithVolume:(float)vol balance:(float)bal;
00027 -(void) play;
00028 
00029 
00030 @end

Generated on Sat Aug 26 21:14:16 2006 for MacTrek by  doxygen 1.4.7