VSUManager Class Reference
#include <VSUManager.h>
![](../class_v_s_u_manager.png)
# Public Types | |
enum | VSUSoundSourceTypes |
enum | VSUPlaybackModes |
# Public Member Functions | |
void | playSounds (uint32 elapsedMicroseconds) |
void | reset () |
Reset the manager's state. | |
void | setMode (uint32 playbackMode) |
void | update () |
Update the manager. | |
void | stopAllSounds () |
Stop all sound sources. | |
void | enableQueue () |
Enable queueing petitions to play sounds. | |
void | disableQueue () |
# Static Public Member Functions | |
static void | applySoundSourceConfiguration (const VSUSoundSourceConfiguration *vsuSoundSourceConfiguration) |
static void | applyPCMSampleToSoundSource (int8 sample) |
static void | stopSoundSourcesUsedBy (Object requester) |
static uint32 | getMode () |
static void | print (int32 x, int32 y) |
Print the manager's status. | |
static void | printWaveFormStatus (int32 x, int32 y) |
Print waveforms. |
# Protected Attributes | |
VirtualList | queuedVSUSoundSourceConfigurations |
List of queued sound source configurations. | |
VSUSoundSourceConfiguration | vsuSoundSourceConfigurations [6] |
Mapping of VSU sound source configurations. | |
Waveform | waveforms [5] |
Mapping of waveworms. | |
fix7_9_ext | ticks |
Elapsed ticks. | |
uint32 | targetPCMUpdates |
Target PCM cycles per game cycle. | |
uint32 | playbackMode |
Playback mode. | |
bool | allowQueueingSoundRequests |
bool | haveUsedSoundSources |
Flag to skip sound source releasing if not necessary. | |
bool | haveQueuedRequests |
Flag to skip pending sound source dispatching if not necessary. |
# Additional Inherited Members | |
![]() | |
void | constructor () |
Class' constructor. | |
const void * | getVTable () |
bool | mutateTo (const void *targetClass) |
![]() | |
static Object | getCast (void *object, ClassPointer targetClassGetClassMethod, ClassPointer baseClassGetClassMethod) |
![]() | |
void * | vTable |
Pointer to the class's virtual table. |
# Detailed Description
# Member Enumeration Documentation
# VSUPlaybackModes
enum VSUPlaybackModes |
Playback types
Definition at line 47 of file VSUManager.h.
# VSUSoundSourceTypes
enum VSUSoundSourceTypes |
Sound source types
Definition at line 38 of file VSUManager.h.
# Member Function Documentation
# applyPCMSampleToSoundSource()
|
inlinestatic |
Apply a sound source configuration to a VSU sound source with the provided data for PCM playback.
- Parameters
-
sample PCM sample data
# applySoundSourceConfiguration()
|
static |
Apply a sound source configuration to a VSU sound source with the provided data.
- Parameters
-
vsuSoundSourceConfiguration VSU sound source configuration
Definition at line 51 of file VSUManager.c.
# disableQueue()
void VSUManager::disableQueue | ( | ) |
Disable queueing petitions to play sounds (if there are no sound sources availables at the time of request, the petition is ignored).
Definition at line 350 of file VSUManager.c.
# enableQueue()
void VSUManager::enableQueue | ( | ) |
Enable queueing petitions to play sounds.
Definition at line 343 of file VSUManager.c.
# getMode()
|
static |
Retriev the playback mode (stops any playing sound).
- Returns
- kPlaybackNative or kPlaybackPCM
Definition at line 96 of file VSUManager.c.
# playSounds()
void VSUManager::playSounds | ( | uint32 | elapsedMicroseconds | ) |
Play the allocated sounds.
- Parameters
-
elapsedMicroseconds Elapsed time between call
# print()
Print the manager's status.
Definition at line 105 of file VSUManager.c.
# printWaveFormStatus()
Print waveforms.
Definition at line 134 of file VSUManager.c.
# reset()
secure void VSUManager::reset | ( | ) |
Reset the manager's state.
Definition at line 198 of file VSUManager.c.
# setMode()
secure void VSUManager::setMode | ( | uint32 | playbackMode | ) |
Set the playback mode (stops any playing sound).
- Parameters
-
playbackMode kPlaybackNative or kPlaybackPCM
Definition at line 281 of file VSUManager.c.
# stopAllSounds()
secure void VSUManager::stopAllSounds | ( | ) |
Stop all sound sources.
Definition at line 321 of file VSUManager.c.
# stopSoundSourcesUsedBy()
|
static |
Stop sound output in the sound sources in use by the requester object.
- Parameters
-
requester Object using a sound source
Definition at line 78 of file VSUManager.c.
# update()
secure void VSUManager::update | ( | ) |
Update the manager.
Definition at line 304 of file VSUManager.c.
# Member Data Documentation
# allowQueueingSoundRequests
|
protected |
If false and if there are no sound sources availables at the time of request, the petition is ignored
Definition at line 180 of file VSUManager.h.
# haveQueuedRequests
|
protected |
Flag to skip pending sound source dispatching if not necessary.
Definition at line 186 of file VSUManager.h.
# haveUsedSoundSources
|
protected |
Flag to skip sound source releasing if not necessary.
Definition at line 183 of file VSUManager.h.
# playbackMode
|
protected |
Playback mode.
Definition at line 176 of file VSUManager.h.
# queuedVSUSoundSourceConfigurations
|
protected |
List of queued sound source configurations.
Definition at line 161 of file VSUManager.h.
# targetPCMUpdates
|
protected |
Target PCM cycles per game cycle.
Definition at line 173 of file VSUManager.h.
# ticks
|
protected |
Elapsed ticks.
Definition at line 170 of file VSUManager.h.
# vsuSoundSourceConfigurations
|
protected |
Mapping of VSU sound source configurations.
Definition at line 164 of file VSUManager.h.
# waveforms
|
protected |
Mapping of waveworms.
Definition at line 167 of file VSUManager.h.
The documentation for this class was generated from the following files:
- VUEngine-Core/source/Hardware/VSUManager.h
- VUEngine-Core/source/Hardware/VSUManager.c