|
Oolite
|
#include <OOSoundSource.h>
Instance Methods | |
| (id) | - initWithSound: |
| (OOSound *) | - sound |
| (void) | - setSound: |
| (BOOL) | - loop |
| (void) | - setLoop: |
| (uint8_t) | - repeatCount |
| (void) | - setRepeatCount: |
| (BOOL) | - isPlaying |
| (void) | - play |
| (void) | - playOrRepeat |
| (void) | - stop |
| (void) | - playSound: |
| (void) | - playSound:repeatCount: |
| (void) | - playOrRepeatSound: |
| (void) | - setPositional: |
| (BOOL) | - positional |
| (void) | - setPosition: |
| (Vector) | - position |
| (void) | - setGain: |
| (float) | - gain |
| (void) | - setVelocity: |
| (void) | - setOrientation: |
| (void) | - setConeAngle: |
| (void) | - setGainInsideCone:outsideCone: |
| (void) | - positionRelativeTo: |
| (id) | - init [implementation] |
| (void) | - dealloc [implementation] |
| (NSString *) | - descriptionComponents [implementation] |
| (void) | - channel:didFinishPlayingSound: [implementation] |
| (id) | - initWithCustomSoundKey: |
| (void) | - playCustomSoundWithKey: |
| (jsval) | - oo_jsValueInContext: [implementation] |
| (NSString *) | - oo_jsClassName [implementation] |
Class Methods | |
| (instancetype) | + sourceWithSound: |
| (void) | + stopAll |
| (id) | + sourceWithCustomSoundKey: |
Private Attributes | |
| OOSound * | _sound |
| OOSoundChannel * | _channel |
| BOOL | _loop |
| uint8_t | _repeatCount |
| uint8_t | _remainingCount |
| Vector | _position |
| BOOL | _positional |
| float | _gain |
Definition at line 42 of file OOSoundSource.h.
|
implementation |
Definition at line 276 of file OOSoundSource.m.
References _channel, _remainingCount, nil, OOSoundAcquireLock, OOSoundReleaseLock, OOSoundChannel::playSound:looped:, OOSoundMixer::pushChannel:, OOSoundChannel::setDelegate:, OOSoundMixer::sharedMixer, and sound.
|
implementation |
Definition at line 64 of file OOSoundSource.m.
Referenced by dealloc.
|
implementation |
Definition at line 72 of file OOSoundSource.m.
References descriptionComponents, isPlaying, loop, and repeatCount.
Referenced by descriptionComponents.
| - (float) gain |
Definition at line 249 of file OOSoundSource.m.
Referenced by gain, OOMusic::musicGain, and setGain:.
|
implementation |
Definition at line 41 of file OOSoundSource.m.
References _gain, _position, _positional, init, kZeroVector, and nil.
Referenced by init, and initWithSound:.
| - (id) initWithCustomSoundKey: | (NSString*) | key |
Provided by category OOSoundSource(OOCustomSounds).
Definition at line 9973 of file Universe.m.
| - (id) initWithSound: | (OOSound*) | inSound |
Definition at line 53 of file OOSoundSource.m.
References init, nil, and setSound:.
Referenced by OOSoundSource(OOCustomSounds)::initWithCustomSoundKey:.
| - (BOOL) isPlaying |
Definition at line 115 of file OOSoundSource.m.
References _channel, isPlaying, and nil.
Referenced by descriptionComponents, PlayerEntity(Sound)::isBeeping, OOMusic::isPlaying, isPlaying, and playOrRepeat.
| - (BOOL) loop |
Definition at line 95 of file OOSoundSource.m.
Referenced by descriptionComponents, loop, play, and setLoop:.
|
implementation |
Provided by category OOSoundSource(OOJavaScriptExtentions).
Definition at line 340 of file OOJSSoundSource.m.
|
implementation |
Provided by category OOSoundSource(OOJavaScriptExtentions).
Definition at line 324 of file OOJSSoundSource.m.
| - (void) play |
Definition at line 120 of file OOSoundSource.m.
References _channel, _remainingCount, EXPECT_NOT, loop, nil, OOSoundAcquireLock, OOSoundReleaseLock, play, OOSoundChannel::playSound:looped:, OOSoundMixer::popChannel, repeatCount, OOSoundChannel::setDelegate:, OOSoundChannel::setGain:, OOSoundChannel::setPosition:, OOSoundMixer::sharedMixer, sound, sPlayingSoundSources, and stop.
Referenced by play, OOMusic::playLooped:, playOrRepeat, playSound:repeatCount:, SoundSourcePlay(), SoundSourcePlay(), and PlayerEntity(Sound)::updateAfterburnerSound.
| - (void) playCustomSoundWithKey: | (NSString*) | key |
Provided by category OOSoundSource(OOCustomSounds).
Definition at line 9985 of file Universe.m.
Referenced by PlayerEntity(Sound)::playDockWithStation, PlayerEntity(Sound)::playExitWitchspace, PlayerEntity(Sound)::playFiredECMSound, PlayerEntity(Sound)::playGalacticHyperspace, PlayerEntity(Sound)::playHitByECMSound, PlayerEntity(Sound)::playHyperspaceAborted, PlayerEntity(Sound)::playLaunchFromStation, and PlayerEntity(Sound)::playStandardHyperspace.
| - (void) playOrRepeat |
Definition at line 148 of file OOSoundSource.m.
References _remainingCount, isPlaying, play, and playOrRepeat.
Referenced by playOrRepeat, playOrRepeatSound:, SoundSourcePlayOrRepeat(), and SoundSourcePlayOrRepeat().
| - (void) playOrRepeatSound: | (OOSound*) | inSound |
Definition at line 199 of file OOSoundSource.m.
References _sound, playOrRepeat, playSound:, and sound.
| - (void) playSound: | (OOSound*) | inSound |
Definition at line 186 of file OOSoundSource.m.
References playSound:repeatCount:.
Referenced by OOSoundSource(OOCustomSounds)::playCustomSoundWithKey:, PlayerEntity(Sound)::playInterfaceBeep:, playOrRepeatSound:, PlayTrumbleIdle(), and PlayTrumbleSqueal().
| - (void) playSound: | (OOSound*) | inSound | |
| repeatCount: | (uint8_t) | inCount |
Definition at line 191 of file OOSoundSource.m.
References play, setRepeatCount:, setSound:, and stop.
Referenced by playSound:.
| - (Vector) position |
| - (BOOL) positional |
Definition at line 220 of file OOSoundSource.m.
References _positional, and positional.
Referenced by positional.
| - (void) positionRelativeTo: | (OOSoundReferencePoint*) | inPoint |
Definition at line 271 of file OOSoundSource.m.
| - (uint8_t) repeatCount |
Definition at line 105 of file OOSoundSource.m.
References _repeatCount, and repeatCount.
Referenced by descriptionComponents, play, and repeatCount.
| - (void) setConeAngle: | (float) | inAngle |
Definition at line 263 of file OOSoundSource.m.
| - (void) setGain: | (float) | gain |
Definition at line 241 of file OOSoundSource.m.
References _channel, _gain, gain, and OOSoundChannel::setGain:.
Referenced by OOMusic::setMusicGain:, SoundSourceSetProperty(), and SoundSourceSetProperty().
| - (void) setGainInsideCone: | (float) | inInside | |
| outsideCone: | (float) | inOutside |
Definition at line 267 of file OOSoundSource.m.
| - (void) setLoop: | (BOOL) | inLoop |
Definition at line 100 of file OOSoundSource.m.
Referenced by OOMusic::playLooped:, SoundSourceSetProperty(), and SoundSourceSetProperty().
| - (void) setOrientation: | (Vector) | inOrientation |
Definition at line 259 of file OOSoundSource.m.
| - (void) setPosition: | (Vector) | inPosition |
Definition at line 225 of file OOSoundSource.m.
References _channel, _position, _positional, OOSoundChannel::setPosition:, Vector::x, Vector::y, and Vector::z.
Referenced by PlayTrumbleIdle(), PlayTrumbleSqueal(), setPositional:, PlayerEntity(Sound)::setUpSound, SoundSourceSetProperty(), and SoundSourceSetProperty().
| - (void) setPositional: | (BOOL) | inPositional |
Definition at line 207 of file OOSoundSource.m.
References _positional, and setPosition:.
Referenced by SoundSourceSetProperty(), and SoundSourceSetProperty().
| - (void) setRepeatCount: | (uint8_t) | inCount |
Definition at line 110 of file OOSoundSource.m.
References _repeatCount, and count.
Referenced by playSound:repeatCount:, SoundSourcePlay(), SoundSourcePlay(), SoundSourceSetProperty(), and SoundSourceSetProperty().
| - (void) setSound: | (OOSound*) | inSound |
Definition at line 86 of file OOSoundSource.m.
References _sound, sound, and stop.
Referenced by initWithSound:, OOMusic::playLooped:, playSound:repeatCount:, SoundSourceSetProperty(), SoundSourceSetProperty(), and OOMusic::stop.
| - (void) setVelocity: | (Vector) | inVelocity |
Definition at line 255 of file OOSoundSource.m.
| - (OOSound *) sound |
Definition at line 81 of file OOSoundSource.m.
Referenced by channel:didFinishPlayingSound:, play, playOrRepeatSound:, setSound:, and sound.
| + (id) sourceWithCustomSoundKey: | (NSString*) | key |
Provided by category OOSoundSource(OOCustomSounds).
Definition at line 9968 of file Universe.m.
| + (instancetype) sourceWithSound: | (OOSound*) | inSound |
Definition at line 36 of file OOSoundSource.m.
| - (void) stop |
Definition at line 156 of file OOSoundSource.m.
References _channel, nil, OOSoundAcquireLock, OOSoundReleaseLock, OOSoundChannel::setDelegate:, OOSoundChannel::stop, and stop.
Referenced by dealloc, play, OOMusic::playLooped:, playSound:repeatCount:, setSound:, SoundSourceStop(), SoundSourceStop(), OOMusic::stop, and stop.
| + (void) stopAll |
Definition at line 172 of file OOSoundSource.m.
References nil, sPlayingSoundSources, and stopAll.
Referenced by PlayerEntity::completeSetUpAndSetTarget:, and stopAll.
|
private |
Definition at line 45 of file OOSoundSource.h.
Referenced by channel:didFinishPlayingSound:, isPlaying, play, setGain:, setPosition:, and stop.
|
private |
Definition at line 51 of file OOSoundSource.h.
|
private |
Definition at line 46 of file OOSoundSource.h.
|
private |
Definition at line 49 of file OOSoundSource.h.
Referenced by init, position, and setPosition:.
|
private |
Definition at line 50 of file OOSoundSource.h.
Referenced by init, positional, setPosition:, and setPositional:.
|
private |
Definition at line 48 of file OOSoundSource.h.
Referenced by channel:didFinishPlayingSound:, play, and playOrRepeat.
|
private |
Definition at line 47 of file OOSoundSource.h.
Referenced by repeatCount, and setRepeatCount:.
|
private |
Definition at line 44 of file OOSoundSource.h.
Referenced by playOrRepeatSound:, setSound:, and sound.