home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.0
/
NeXTSTEP3.0.iso
/
NextDeveloper
/
Examples
/
AppKit
/
BreakApp
/
SoundEffect.h
< prev
next >
Wrap
Text File
|
1992-04-24
|
582b
|
28 lines
#import <objc/Object.h>
#import <soundkit/Sound.h>
#import <soundkit/NXPlayStream.h>
@interface SoundEffect:Object
{
Sound *sound; // The sound data for this sound
struct {
unsigned int refCount:24; // Number of play requests pending
unsigned int freeWhenDone:1; // Free when all are done
unsigned int :7;
} flags;
}
- initFromSection:(const char *)sound;
- play;
- play:(float)volume pan:(float)rads;
- free;
+ (void)setSoundEnabled:(BOOL)flag;
+ (BOOL)soundEnabled;
+ (void)setMaxSoundStreams:(unsigned int)max;
+ (unsigned int)maxSoundStreams;
@end