Annotation of Examples/AppKit/BreakApp/SoundEffect.h, revision 1.1

1.1     ! root        1: #import <objc/Object.h>
        !             2: #import <soundkit/Sound.h>
        !             3: #import <soundkit/NXPlayStream.h>
        !             4: 
        !             5: @interface SoundEffect:Object
        !             6: {
        !             7:     Sound *sound;                      // The sound data for this sound
        !             8:     struct {
        !             9:         unsigned int refCount:24;      // Number of play requests pending
        !            10:        unsigned int freeWhenDone:1;    // Free when all are done
        !            11:        unsigned int :7;
        !            12:     } flags;
        !            13: }
        !            14: 
        !            15: - initFromSection:(const char *)sound;
        !            16: - play;
        !            17: - play:(float)volume pan:(float)rads;
        !            18: - free;
        !            19: 
        !            20: + (void)setSoundEnabled:(BOOL)flag;
        !            21: + (BOOL)soundEnabled;
        !            22: 
        !            23: + (void)setMaxSoundStreams:(unsigned int)max;
        !            24: + (unsigned int)maxSoundStreams;
        !            25: 
        !            26: // Internal methods.
        !            27: 
        !            28: + (NXPlayStream *)soundStream;
        !            29: + (void)releaseSoundStream:(NXPlayStream *)soundStream;
        !            30: 
        !            31: @end
        !            32: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.