![]() |
Oolite 1.91.0.7659-250410-0031890
|
#include <OOALSound.h>
Instance Methods | |
(id) | - initWithContentsOfFile: |
(NSString *) | - name |
(ALuint) | - soundBuffer |
(BOOL) | - soundIncomplete |
(void) | - rewind |
(id) | - init [implementation] |
(id) | - initWithDecoder: [implementation] |
(id) | - initWithCustomSoundKey: |
(jsval) | - oo_jsValueInContext: [implementation] |
(NSString *) | - oo_jsDescription [implementation] |
(NSString *) | - oo_jsClassName [implementation] |
Class Methods | |
(BOOL) | + setUp |
(void) | + update |
(void) | + setMasterVolume: |
(float) | + masterVolume |
(BOOL) | + isSoundOK |
(id) | + soundWithCustomSoundKey: |
Definition at line 30 of file OOALSound.h.
|
implementation |
Definition at line 90 of file OOALSound.m.
References init, setUp, and sIsSetUp.
Referenced by init, OOMusic::initWithContentsOfFile:, OOALBufferedSound::initWithDecoder:, and OOALStreamedSound::initWithDecoder:.
- (id) initWithContentsOfFile: | (NSString *) | path |
Reimplemented in OOMusic.
Definition at line 97 of file OOALSound.m.
References kMaxBufferedSoundSize, kOOLogSoundLoadingError, kOOLogSoundLoadingSuccess, nil, OOLog, setUp, sIsSetUp, and sIsSoundOK.
- (id) initWithCustomSoundKey: | (NSString *) | key |
Provided by category OOSound(OOCustomSounds).
Definition at line 11063 of file Universe.m.
|
implementation |
Reimplemented in OOALBufferedSound, and OOALStreamedSound.
Definition at line 135 of file OOALSound.m.
References nil.
+ (BOOL) isSoundOK |
Definition at line 156 of file OOALSound.m.
References isSoundOK, and sIsSoundOK.
Referenced by OOALBufferedSound::initWithDecoder:, OOALStreamedSound::initWithDecoder:, and isSoundOK.
+ (float) masterVolume |
Definition at line 80 of file OOALSound.m.
References masterVolume, OOOpenALController::masterVolume, setUp, OOOpenALController::sharedController, and sIsSetUp.
Referenced by PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, Universe::initWithGameView:, masterVolume, PlayerEntity::setGuiToGameOptionsScreen, setMasterVolume:, and Universe::startSpeakingString:.
- (NSString *) name |
Reimplemented in OOALBufferedSound, OOALStreamedSound, and OOMusic.
Definition at line 142 of file OOALSound.m.
References name, and OOLogGenericSubclassResponsibility.
Referenced by OOMusic::name, name, and OOSound(OOJavaScriptExtentions)::oo_jsDescription.
|
implementation |
Provided by category OOSound(OOJavaScriptExtentions).
Definition at line 311 of file OOJSSound.m.
|
implementation |
Provided by category OOSound(OOJavaScriptExtentions).
Definition at line 305 of file OOJSSound.m.
|
implementation |
Provided by category OOSound(OOJavaScriptExtentions).
Definition at line 289 of file OOJSSound.m.
- (void) rewind |
Reimplemented in OOALStreamedSound.
Definition at line 175 of file OOALSound.m.
References rewind.
Referenced by OOSoundChannel::playSound:looped:, rewind, and OOSoundChannel::update.
+ (void) setMasterVolume: | (float) | fraction |
Definition at line 64 of file OOALSound.m.
References masterVolume, OOOpenALController::masterVolume, OOOpenALController::setMasterVolume:, setUp, OOOpenALController::sharedController, and sIsSetUp.
Referenced by PlayerEntity(OOControlsPrivate)::handleGameOptionsScreenKeys, and setUp.
+ (BOOL) setUp |
Definition at line 46 of file OOALSound.m.
References nil, setMasterVolume:, setUp, OOOpenALController::sharedController, sIsSetUp, and sIsSoundOK.
Referenced by MyOpenGLView::init, init, initWithContentsOfFile:, OOALBufferedSound::initWithDecoder:, OOALStreamedSound::initWithDecoder:, masterVolume, setMasterVolume:, and setUp.
- (ALuint) soundBuffer |
Reimplemented in OOALBufferedSound, and OOALStreamedSound.
Definition at line 162 of file OOALSound.m.
References OOLogGenericSubclassResponsibility, and soundBuffer.
Referenced by OOSoundChannel(Private)::enqueueBuffer:, and soundBuffer.
- (BOOL) soundIncomplete |
Reimplemented in OOALStreamedSound.
Definition at line 169 of file OOALSound.m.
References soundIncomplete.
Referenced by soundIncomplete.
+ (id) soundWithCustomSoundKey: | (NSString *) | key |
Provided by category OOSound(OOCustomSounds).
Definition at line 11055 of file Universe.m.
Referenced by GetNamedSound(), OOSound(OOCustomSounds)::initWithCustomSoundKey:, OOSoundSource(OOCustomSounds)::initWithCustomSoundKey:, OOSoundSource(OOCustomSounds)::playCustomSoundWithKey:, PlayerEntity(Sound)::playInterfaceBeep:, and OOSoundSourcePool::playSoundWithKey:priority:expiryTime:overlap:position:.
+ (void) update |
Definition at line 149 of file OOALSound.m.
References OOSoundMixer::sharedMixer, sIsSoundOK, update, and OOSoundMixer::update.
Referenced by GameController(OOPrivate)::doPerformGameTick, and update.