minor fixes

This commit is contained in:
h4570
2022-08-11 20:39:04 +02:00
parent 5316abce42
commit 74c642bd83
5 changed files with 15 additions and 12 deletions
+8 -6
View File
@@ -37,14 +37,14 @@ class Audio {
void init();
/**
* Load 24bit 22050Hz Stereo WAV.
* Load 24bit 22kHz Stereo WAV.
* Can be used multiple times for song switching.
* @param t_path Example: "host:song.wav" or "host:folder/song.wav"
*/
void loadSong(const char* t_path);
/**
* Load 24bit 22050Hz Stereo WAV.
* Load 24bit 22kHz Stereo WAV.
* Can be used multiple times for song switching.
* @param t_path Example: "host:song.wav" or "host:folder/song.wav"
*/
@@ -89,15 +89,17 @@ class Audio {
void removeSongListener(const u32& t_id);
/**
* Load ADPCM sample. ADPCM sample is an output from
* "adpenc" tool, shipped with PS2SDK.
* Load ADPCM sample.
* ADPCM sample is an output from "Convert WAV to ADPCM" task (adpenc tool).
* Adpenc expects 22kHz 16bit file.
* @param t_path Example: "host:hit.adpcm" or "host:folder/jump.adpcm"
*/
audsrv_adpcm_t* loadADPCM(const char* t_path);
/**
* Load ADPCM sample. ADPCM sample is an output from
* "adpenc" tool, shipped with PS2SDK.
* Load ADPCM sample.
* ADPCM sample is an output from "Convert WAV to ADPCM" task (adpenc tool).
* Adpenc expects 22kHz 16bit file.
* @param t_path Example: "host:hit.adpcm" or "host:folder/jump.adpcm"
*/
inline audsrv_adpcm_t* loadADPCM(const std::string& t_path) {
+4 -4
View File
@@ -34,10 +34,10 @@ class Pad {
void init();
void update();
inline const PadButtons& getClicked() { return clicked; }
inline const PadButtons& getPressed() { return pressed; }
inline const PadJoy& getLeftJoyPad() { return leftJoyPad; }
inline const PadJoy& getRightJoyPad() { return rightJoyPad; }
inline const PadButtons& getClicked() const { return clicked; }
inline const PadButtons& getPressed() const { return pressed; }
inline const PadJoy& getLeftJoyPad() const { return leftJoyPad; }
inline const PadJoy& getRightJoyPad() const { return rightJoyPad; }
private:
char padBuf[256] alignas(sizeof(char) * 256);