persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
audioDb.cpp File Reference
#include "data/audioDb.hpp"
#include "core/logger.hpp"
#include <string>
Include dependency graph for audioDb.cpp:

Go to the source code of this file.

Functions

AudioDBEntry getAudioDBEntry (AudioType type, int id)
 Internal helper to get the AudioDBEntry struct.
std::string getAudioFilepath (AudioType type, int id)
 Get the audio file path.
ae::q20_12_t getLoopStart (AudioType type, int id)
 Get the loop start time.
ae::q20_12_t getLoopEnd (AudioType type, int id)
 Get the loop end time.

Variables

static const AudioDBEntry AUDIO_DB_ENTRY []
static const int AUDIO_DB_ENTRY_LEN = sizeof(AUDIO_DB_ENTRY) / sizeof(AUDIO_DB_ENTRY[0])

Function Documentation

◆ getAudioDBEntry()

AudioDBEntry getAudioDBEntry ( AudioType type,
int id )

Internal helper to get the AudioDBEntry struct.

Parameters
typeth AudioType to get
idthe specific audio to get
Returns
AudioDBEntry the data

Definition at line 78 of file audioDb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAudioFilepath()

std::string getAudioFilepath ( AudioType type,
int id )

Get the audio file path.

Parameters
typeth AudioType to get
idthe specific audio to get
Returns
std::string the filepath

Definition at line 93 of file audioDb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLoopEnd()

ae::q20_12_t getLoopEnd ( AudioType type,
int id )

Get the loop end time.

Parameters
typeth AudioType to get
idthe specific audio to get
Returns
ae::q20_12_t the loop end time

Definition at line 115 of file audioDb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getLoopStart()

ae::q20_12_t getLoopStart ( AudioType type,
int id )

Get the loop start time.

Parameters
typeth AudioType to get
idthe specific audio to get
Returns
ae::q20_12_t the loop end time

Definition at line 104 of file audioDb.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ AUDIO_DB_ENTRY

const AudioDBEntry AUDIO_DB_ENTRY[]
static

Definition at line 5 of file audioDb.cpp.

◆ AUDIO_DB_ENTRY_LEN

const int AUDIO_DB_ENTRY_LEN = sizeof(AUDIO_DB_ENTRY) / sizeof(AUDIO_DB_ENTRY[0])
static

Definition at line 76 of file audioDb.cpp.