mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 13:00:11 -07:00
format
This commit is contained in:
parent
17d2e39a57
commit
164222b827
5 changed files with 31 additions and 32 deletions
|
|
@ -19,8 +19,9 @@ class SfxExtractor {
|
||||||
void renderOutput();
|
void renderOutput();
|
||||||
void setup();
|
void setup();
|
||||||
void ripNextSfx();
|
void ripNextSfx();
|
||||||
void finished();// Also handles failure.
|
void finished(); // Also handles failure.
|
||||||
void maybeGiveProgressReport();
|
void maybeGiveProgressReport();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SfxExtractor();
|
SfxExtractor();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -587,7 +587,8 @@ void OTRAudio_Thread() {
|
||||||
// 3 is the maximum authentic frame divisor.
|
// 3 is the maximum authentic frame divisor.
|
||||||
s16 audio_buffer[SAMPLES_HIGH * NUM_AUDIO_CHANNELS * 3];
|
s16 audio_buffer[SAMPLES_HIGH * NUM_AUDIO_CHANNELS * 3];
|
||||||
for (int i = 0; i < AUDIO_FRAMES_PER_UPDATE; i++) {
|
for (int i = 0; i < AUDIO_FRAMES_PER_UPDATE; i++) {
|
||||||
AudioMgr_CreateNextAudioBuffer(audio_buffer + i * (num_audio_samples * NUM_AUDIO_CHANNELS), num_audio_samples);
|
AudioMgr_CreateNextAudioBuffer(audio_buffer + i * (num_audio_samples * NUM_AUDIO_CHANNELS),
|
||||||
|
num_audio_samples);
|
||||||
#if !defined(__SWITCH__) && !defined(__WIIU__)
|
#if !defined(__SWITCH__) && !defined(__WIIU__)
|
||||||
// Give accessibility a chance to merge its own audio in.
|
// Give accessibility a chance to merge its own audio in.
|
||||||
ActorAccessibility_MixAccessibleAudioWithGameAudio(
|
ActorAccessibility_MixAccessibleAudioWithGameAudio(
|
||||||
|
|
@ -1252,9 +1253,9 @@ extern "C" void InitOTR() {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
OTRMessage_Init();
|
OTRMessage_Init();
|
||||||
#if !defined(__SWITCH__) && !defined(__WIIU__)
|
#if !defined(__SWITCH__) && !defined(__WIIU__)
|
||||||
ActorAccessibility_Init();
|
ActorAccessibility_Init();
|
||||||
#endif
|
#endif
|
||||||
OTRAudio_Init();
|
OTRAudio_Init();
|
||||||
OTRExtScanner();
|
OTRExtScanner();
|
||||||
VanillaItemTable_Init();
|
VanillaItemTable_Init();
|
||||||
|
|
@ -2553,23 +2554,20 @@ void OTRAudio_SfxCaptureThread() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" void OTRAudio_InstallSfxCaptureThread() {
|
extern "C" void OTRAudio_InstallSfxCaptureThread() {
|
||||||
OTRAudio_Exit();
|
OTRAudio_Exit();
|
||||||
audio.running = true;
|
audio.running = true;
|
||||||
audio.thread = std::thread(OTRAudio_SfxCaptureThread);
|
audio.thread = std::thread(OTRAudio_SfxCaptureThread);
|
||||||
|
}
|
||||||
}
|
extern "C" void OTRAudio_UninstallSfxCaptureThread() {
|
||||||
extern "C" void OTRAudio_UninstallSfxCaptureThread()
|
|
||||||
{
|
|
||||||
OTRAudio_Exit();
|
OTRAudio_Exit();
|
||||||
audio.running = true;
|
audio.running = true;
|
||||||
audio.thread = std::thread(OTRAudio_Thread);
|
audio.thread = std::thread(OTRAudio_Thread);
|
||||||
}
|
}
|
||||||
std::unique_lock<std::mutex> OTRAudio_Lock()
|
std::unique_lock<std::mutex> OTRAudio_Lock() {
|
||||||
{
|
|
||||||
return std::unique_lock<std::mutex>(audio.mutex);
|
return std::unique_lock<std::mutex>(audio.mutex);
|
||||||
}
|
}
|
||||||
//extern "C" void CheckTracker_OnMessageClose() {
|
// extern "C" void CheckTracker_OnMessageClose() {
|
||||||
// CheckTracker::CheckTrackerDialogClosed();
|
// CheckTracker::CheckTrackerDialogClosed();
|
||||||
extern "C" void Gfx_UnregisterBlendedTexture(const char* name) {
|
extern "C" void Gfx_UnregisterBlendedTexture(const char* name) {
|
||||||
gfx_unregister_blended_texture(name);
|
gfx_unregister_blended_texture(name);
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,6 @@ void Gfx_TextureCacheDelete(const uint8_t* addr);
|
||||||
void SaveManager_ThreadPoolWait();
|
void SaveManager_ThreadPoolWait();
|
||||||
void CheckTracker_OnMessageClose();
|
void CheckTracker_OnMessageClose();
|
||||||
|
|
||||||
|
|
||||||
int32_t GetGIID(uint32_t itemID);
|
int32_t GetGIID(uint32_t itemID);
|
||||||
GetItemID RetrieveGetItemIDFromItemID(ItemID itemID);
|
GetItemID RetrieveGetItemIDFromItemID(ItemID itemID);
|
||||||
RandomizerGet RetrieveRandomizerGetFromItemID(ItemID itemID);
|
RandomizerGet RetrieveRandomizerGetFromItemID(ItemID itemID);
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,8 @@ void SohMenu::AddMenuSettings() {
|
||||||
AddWidget(path, "Extract Sfx", WIDGET_CVAR_CHECKBOX)
|
AddWidget(path, "Extract Sfx", WIDGET_CVAR_CHECKBOX)
|
||||||
.CVar("gExtractSfx")
|
.CVar("gExtractSfx")
|
||||||
.RaceDisable(false)
|
.RaceDisable(false)
|
||||||
.Options(CheckboxOptions().Tooltip("Extracts the sfx to be used in accessible audio cues, must be run once for the audio cues to play then restart game"));
|
.Options(CheckboxOptions().Tooltip("Extracts the sfx to be used in accessible audio cues, must be run once for "
|
||||||
|
"the audio cues to play then restart game"));
|
||||||
|
|
||||||
AddWidget(path, "EXPERIMENTAL", WIDGET_SEPARATOR_TEXT).Options(TextOptions().Color(Colors::Orange));
|
AddWidget(path, "EXPERIMENTAL", WIDGET_SEPARATOR_TEXT).Options(TextOptions().Color(Colors::Orange));
|
||||||
AddWidget(path, "ImGui Menu Scaling", WIDGET_CVAR_COMBOBOX)
|
AddWidget(path, "ImGui Menu Scaling", WIDGET_CVAR_COMBOBOX)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue