Skip to content

Commit

Permalink
Skip the PC CD-Rom info screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikelChan committed Dec 26, 2021
1 parent a8e7796 commit b153f39
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Expand Up @@ -25,7 +25,7 @@
"WIILOAD": "tcp:192.168.1.16"
}
},
"command": "wiiload PlumbersDontWearTies.dol",
"command": "wiiload PlumbersDontWearTies-SDL.dol",
"group": "build",
"problemMatcher": []
}
Expand Down
4 changes: 2 additions & 2 deletions PlumbersDontWearTies/Game.cpp
Expand Up @@ -89,7 +89,7 @@ void Game::Start()
return;

currentGameState = GameStates::BeginScene;
currentSceneIndex = 0;
currentSceneIndex = 1; // Skip the PC CD-Rom info screens
lastDecisionSceneIndex = 0;
currentPictureIndex = 0;
currentDecisionIndex = -1;
Expand All @@ -103,7 +103,7 @@ void Game::Start()
desiredAudioSpec.freq = WAV_FREQUENCY;
desiredAudioSpec.format = AUDIO_S16;
desiredAudioSpec.channels = WAV_CHANNELS;
desiredAudioSpec.samples = 256;
desiredAudioSpec.samples = WAV_SAMPLES;
desiredAudioSpec.callback = AudioCallback;

if (SDL_OpenAudio(&desiredAudioSpec, &obtainedAudioSpec) < 0)
Expand Down
1 change: 1 addition & 0 deletions PlumbersDontWearTies/Game.h
Expand Up @@ -13,6 +13,7 @@
#define WAV_FREQUENCY 11025 // Hz
#define WAV_FORMAT 2 // 2 bytes, 16 bits
#define WAV_CHANNELS 2 // Stereo
#define WAV_SAMPLES 1024 // SDL Wii always ignores this and sets it to 1152

// TODO: Does audio data in a WAV always start in the same offset?

Expand Down

0 comments on commit b153f39

Please sign in to comment.