JubeatPlus 3.9.11
Loading...
Searching...
No Matches
SEManager Class Reference

Starts sound effects and stops them together. More...

#include <SEManager.h>

Inheritance diagram for SEManager:
Collaboration diagram for SEManager:

Instance Methods

(instancetype) - init
 Builds the manager with room for thirty-two players.
(void) - play:
 Starts a player and takes ownership of its delegate callbacks.
(void) - stopAll
 Stops everything currently playing and forgets it.
(void) - audioPlayerDidFinishPlaying:successfully:
 Forgets a player that has finished.
(void) - audioPlayerDecodeErrorDidOccur:error:
 Inert.
(void) - audioPlayerBeginInterruption:
 Forgets a player the system has interrupted.

Detailed Description

Starts sound effects and stops them together.

Method Documentation

◆ audioPlayerBeginInterruption:

- (void) audioPlayerBeginInterruption: (AVAudioPlayer *) player

Forgets a player the system has interrupted.

The player is dropped from the set but not stopped — the interruption has already silenced it, and nothing here can resume it afterwards.

Parameters
playerThe interrupted player.
Ghidra address:
0x79384
Ghidra address:
0x79384

◆ audioPlayerDecodeErrorDidOccur:error:

- (void) audioPlayerDecodeErrorDidOccur: (AVAudioPlayer *) player
error: (nullable NSError *) error 

Inert.

The body is a single ret .

Parameters
playerIgnored.
errorIgnored.
Ghidra address:
0x79380

◆ audioPlayerDidFinishPlaying:successfully:

- (void) audioPlayerDidFinishPlaying: (AVAudioPlayer *) player
successfully: (BOOL) flag 

Forgets a player that has finished.

The success flag is not consulted, so a player that failed is forgotten just the same.

Parameters
playerThe finished player.
flagWhether playback completed. Ignored.
Ghidra address:
0x792e4
Ghidra address:
0x792e4

◆ init

- (instancetype) init
Initial value:
{
NSMutableSet *playingSEs

Builds the manager with room for thirty-two players.

Returns
The initialised manager.
Ghidra address:
0x79064
Ghidra address:
0x79064

◆ play:

- (void) play: (nullable AVAudioPlayer *) player

Starts a player and takes ownership of its delegate callbacks.

A player that refuses to start is neither tracked nor made to report back.

Parameters
playerThe player to start.
Ghidra address:
0x790ec

◆ stopAll

- (void) stopAll

Stops everything currently playing and forgets it.

Ghidra address:
0x79158

The documentation for this class was generated from the following files: