| 
    Oolite 1.91.0.7712-251017-85ce217
    
   | 
 
#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 43 of file OOSoundSource.h.
      
  | 
  implementation | 
Definition at line 317 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 66 of file OOSoundSource.m.
Referenced by dealloc.
      
  | 
  implementation | 
Definition at line 75 of file OOSoundSource.m.
References descriptionComponents, isPlaying, loop, and repeatCount.
Referenced by descriptionComponents.
| - (float) gain | 
Definition at line 279 of file OOSoundSource.m.
Referenced by gain, OOMusic::musicGain, and setGain:.
      
  | 
  implementation | 
Definition at line 43 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 11093 of file Universe.m.
| - (id) initWithSound: | (OOSound *) | inSound | 
Definition at line 55 of file OOSoundSource.m.
References init, nil, and setSound:.
Referenced by OOSoundSource(OOCustomSounds)::initWithCustomSoundKey:.
| - (BOOL) isPlaying | 
Definition at line 129 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 105 of file OOSoundSource.m.
Referenced by descriptionComponents, loop, play, and setLoop:.
      
  | 
  implementation | 
Provided by category OOSoundSource(OOJavaScriptExtentions).
Definition at line 345 of file OOJSSoundSource.m.
      
  | 
  implementation | 
Provided by category OOSoundSource(OOJavaScriptExtentions).
Definition at line 329 of file OOJSSoundSource.m.
| - (void) play | 
Definition at line 135 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(), and PlayerEntity(Sound)::updateAfterburnerSound.
| - (void) playCustomSoundWithKey: | (NSString *) | key | 
Provided by category OOSoundSource(OOCustomSounds).
Definition at line 11109 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 164 of file OOSoundSource.m.
References _remainingCount, isPlaying, play, and playOrRepeat.
Referenced by playOrRepeat, playOrRepeatSound:, and SoundSourcePlayOrRepeat().
| - (void) playOrRepeatSound: | (OOSound *) | inSound | 
Definition at line 219 of file OOSoundSource.m.
References _sound, playOrRepeat, playSound:, and sound.
| - (void) playSound: | (OOSound *) | inSound | 
Definition at line 204 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 210 of file OOSoundSource.m.
References play, setRepeatCount:, setSound:, and stop.
Referenced by playSound:.
| - (Vector) position | 
| - (BOOL) positional | 
Definition at line 243 of file OOSoundSource.m.
References _positional, and positional.
Referenced by positional.
| - (void) positionRelativeTo: | (OOSoundReferencePoint *) | inPoint | 
Definition at line 310 of file OOSoundSource.m.
| - (uint8_t) repeatCount | 
Definition at line 117 of file OOSoundSource.m.
References _repeatCount, and repeatCount.
Referenced by descriptionComponents, play, and repeatCount.
| - (void) setConeAngle: | (float) | inAngle | 
Definition at line 298 of file OOSoundSource.m.
| - (void) setGain: | (float) | gain | 
Definition at line 269 of file OOSoundSource.m.
References _channel, _gain, gain, and OOSoundChannel::setGain:.
Referenced by OOMusic::setMusicGain:, and SoundSourceSetProperty().
| - (void) setGainInsideCone: | (float) | inInside | |
| outsideCone: | (float) | inOutside | 
Definition at line 304 of file OOSoundSource.m.
| - (void) setLoop: | (BOOL) | inLoop | 
Definition at line 111 of file OOSoundSource.m.
Referenced by OOMusic::playLooped:, and SoundSourceSetProperty().
| - (void) setOrientation: | (Vector) | inOrientation | 
Definition at line 292 of file OOSoundSource.m.
| - (void) setPosition: | (Vector) | inPosition | 
Definition at line 249 of file OOSoundSource.m.
References _channel, _position, _positional, and OOSoundChannel::setPosition:.
Referenced by PlayTrumbleIdle(), PlayTrumbleSqueal(), setPositional:, PlayerEntity(Sound)::setUpSound, and SoundSourceSetProperty().
| - (void) setPositional: | (BOOL) | inPositional | 
Definition at line 226 of file OOSoundSource.m.
References _positional, and setPosition:.
Referenced by SoundSourceSetProperty().
| - (void) setRepeatCount: | (uint8_t) | inCount | 
Definition at line 123 of file OOSoundSource.m.
References _repeatCount, and count.
Referenced by playSound:repeatCount:, SoundSourcePlay(), and SoundSourceSetProperty().
| - (void) setSound: | (OOSound *) | inSound | 
Definition at line 94 of file OOSoundSource.m.
References _sound, sound, and stop.
Referenced by initWithSound:, OOMusic::playLooped:, playSound:repeatCount:, SoundSourceSetProperty(), and OOMusic::stop.
| - (void) setVelocity: | (Vector) | inVelocity | 
Definition at line 286 of file OOSoundSource.m.
| - (OOSound *) sound | 
Definition at line 88 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 11087 of file Universe.m.
| + (instancetype) sourceWithSound: | (OOSound *) | inSound | 
Definition at line 37 of file OOSoundSource.m.
| - (void) stop | 
Definition at line 171 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(), OOMusic::stop, and stop.
| + (void) stopAll | 
Definition at line 189 of file OOSoundSource.m.
References nil, sPlayingSoundSources, and stopAll.
Referenced by PlayerEntity::completeSetUpAndSetTarget:, and stopAll.
      
  | 
  private | 
Definition at line 47 of file OOSoundSource.h.
Referenced by channel:didFinishPlayingSound:, isPlaying, play, setGain:, setPosition:, and stop.
      
  | 
  private | 
Definition at line 53 of file OOSoundSource.h.
      
  | 
  private | 
Definition at line 48 of file OOSoundSource.h.
      
  | 
  private | 
Definition at line 51 of file OOSoundSource.h.
Referenced by init, position, and setPosition:.
      
  | 
  private | 
Definition at line 52 of file OOSoundSource.h.
Referenced by init, positional, setPosition:, and setPositional:.
      
  | 
  private | 
Definition at line 50 of file OOSoundSource.h.
Referenced by channel:didFinishPlayingSound:, play, and playOrRepeat.
      
  | 
  private | 
Definition at line 49 of file OOSoundSource.h.
Referenced by repeatCount, and setRepeatCount:.
      
  | 
  private | 
Definition at line 46 of file OOSoundSource.h.
Referenced by playOrRepeatSound:, setSound:, and sound.