![]() |
Oolite 1.91.0.7668-250429-8542c40
|
#include <OOSoundSourcePool.h>
Instance Methods | |
(id) | - initWithCount:minRepeatTime: |
(void) | - playSoundWithKey:priority:expiryTime:overlap:position: |
(void) | - playSoundWithKey:priority:expiryTime: |
(void) | - playSoundWithKey:priority: |
(void) | - playSoundWithKey:priority:position: |
(void) | - playSoundWithKey:position: |
(void) | - playSoundWithKey: |
(void) | - playSoundWithKey:overlap: |
(void) | - playSoundWithKey:overlap:position: |
(void) | - dealloc [implementation] |
(uint8_t) | - selectSlotForPriority: [implementation] |
Class Methods | |
(instancetype) | + poolWithCount:minRepeatTime: |
Private Attributes | |
struct OOSoundSourcePoolElement * | _sources |
uint8_t | _count |
uint8_t | _latest |
uint8_t | _reserved |
OOTimeDelta | _minRepeat |
OOTimeAbsolute | _nextRepeat |
NSString * | _lastKey |
Definition at line 40 of file OOSoundSourcePool.h.
|
implementation |
Definition at line 87 of file OOSoundSourcePool.m.
References _count, _sources, and dealloc.
Referenced by dealloc.
- (id) initWithCount: | (uint8_t) | count | |
minRepeatTime: | (OOTimeDelta) | minRepeat |
Definition at line 62 of file OOSoundSourcePool.m.
References _count, _minRepeat, _reserved, _sources, count, kNoSlot, and nil.
- (void) playSoundWithKey: | (NSString *) | key |
Definition at line 191 of file OOSoundSourcePool.m.
References playSoundWithKey:priority:.
Referenced by PlayerEntity(Sound)::playBuyCommodity, PlayerEntity(Sound)::playBuyShip, PlayerEntity(Sound)::playCantBuyCommodity, PlayerEntity(Sound)::playCantBuyShip, PlayerEntity(Sound)::playCantSellCommodity, PlayerEntity(Sound)::playGameOver, and PlayerEntity(Sound)::playSellCommodity.
- (void) playSoundWithKey: | (NSString *) | key | |
overlap: | (BOOL) | overlap |
Definition at line 203 of file OOSoundSourcePool.m.
References playSoundWithKey:priority:expiryTime:overlap:position:.
- (void) playSoundWithKey: | (NSString *) | key | |
overlap: | (BOOL) | overlap | |
position: | (Vector) | position |
Definition at line 213 of file OOSoundSourcePool.m.
References playSoundWithKey:priority:expiryTime:overlap:position:.
Referenced by PlayerEntity(Sound)::playWeaponOverheated:.
- (void) playSoundWithKey: | (NSString *) | key | |
position: | (Vector) | position |
Definition at line 197 of file OOSoundSourcePool.m.
References playSoundWithKey:priority:position:.
Referenced by PlayerEntity(Sound)::playAegisCloseToPlanet, PlayerEntity(Sound)::playAegisCloseToStation, PlayerEntity(Sound)::playDirectHit:weaponIdentifier:, PlayerEntity(Sound)::playEscapePodScooped, PlayerEntity(Sound)::playMineLaunched:weaponIdentifier:, PlayerEntity(Sound)::playMissileLaunched:weaponIdentifier:, PlayerEntity(Sound)::playScrapeDamage:, and PlayerEntity(Sound)::playShieldHit:weaponIdentifier:.
- (void) playSoundWithKey: | (NSString *) | key | |
priority: | (float) | priority |
Definition at line 182 of file OOSoundSourcePool.m.
References playSoundWithKey:priority:expiryTime:.
Referenced by PlayerEntity(Sound)::playLegacyScriptSound:, and playSoundWithKey:.
- (void) playSoundWithKey: | (NSString *) | key | |
priority: | (float) | priority | |
expiryTime: | (OOTimeDelta) | expiryTime |
Definition at line 158 of file OOSoundSourcePool.m.
References playSoundWithKey:priority:expiryTime:overlap:position:.
Referenced by playSoundWithKey:priority:.
- (void) playSoundWithKey: | (NSString *) | key | |
priority: | (float) | priority | |
expiryTime: | (OOTimeDelta) | expiryTime | |
overlap: | (BOOL) | overlap | |
position: | (Vector) | position |
Definition at line 103 of file OOSoundSourcePool.m.
References _lastKey, _latest, _minRepeat, _nextRepeat, _reserved, _sources, OOSoundSourcePoolElement::expiryTime, kNoSlot, nil, OOSoundSourcePoolElement::priority, selectSlotForPriority:, OOSound::soundWithCustomSoundKey:, and OOSoundSourcePoolElement::source.
Referenced by PlayerEntity(Sound)::playLaserHit:offset:weaponIdentifier:, playSoundWithKey:overlap:, playSoundWithKey:overlap:position:, playSoundWithKey:priority:expiryTime:, and playSoundWithKey:priority:position:.
- (void) playSoundWithKey: | (NSString *) | key | |
priority: | (float) | priority | |
position: | (Vector) | position |
Definition at line 170 of file OOSoundSourcePool.m.
References playSoundWithKey:priority:expiryTime:overlap:position:.
Referenced by PlayerEntity(Sound)::playAlertConditionRed, PlayerEntity(Sound)::playDockingDenied, PlayerEntity(Sound)::playEnergyLow, PlayerEntity(Sound)::playFuelLeak, PlayerEntity(Sound)::playHostileWarning, PlayerEntity(Sound)::playIncomingMissile:, playSoundWithKey:position:, PlayerEntity(Sound)::playWitchjumpBlocked, PlayerEntity(Sound)::playWitchjumpDistanceTooGreat, PlayerEntity(Sound)::playWitchjumpFailure, PlayerEntity(Sound)::playWitchjumpInsufficientFuel, and PlayerEntity(Sound)::playWitchjumpMisjump.
+ (instancetype) poolWithCount: | (uint8_t) | count | |
minRepeatTime: | (OOTimeDelta) | minRepeat |
Definition at line 56 of file OOSoundSourcePool.m.
|
implementation |
Provided by category OOSoundSourcePool(Private).
Definition at line 228 of file OOSoundSourcePool.m.
Referenced by playSoundWithKey:priority:expiryTime:overlap:position:.
|
private |
Definition at line 44 of file OOSoundSourcePool.h.
Referenced by dealloc, and initWithCount:minRepeatTime:.
|
private |
Definition at line 49 of file OOSoundSourcePool.h.
Referenced by playSoundWithKey:priority:expiryTime:overlap:position:.
|
private |
Definition at line 45 of file OOSoundSourcePool.h.
Referenced by playSoundWithKey:priority:expiryTime:overlap:position:.
|
private |
Definition at line 47 of file OOSoundSourcePool.h.
Referenced by initWithCount:minRepeatTime:, and playSoundWithKey:priority:expiryTime:overlap:position:.
|
private |
Definition at line 48 of file OOSoundSourcePool.h.
Referenced by playSoundWithKey:priority:expiryTime:overlap:position:.
|
private |
Definition at line 46 of file OOSoundSourcePool.h.
Referenced by initWithCount:minRepeatTime:, and playSoundWithKey:priority:expiryTime:overlap:position:.
|
private |
Definition at line 43 of file OOSoundSourcePool.h.
Referenced by dealloc, initWithCount:minRepeatTime:, and playSoundWithKey:priority:expiryTime:overlap:position:.