Commits

spencercw  committed ac89bc2

Fix sound recording so it works in the release build.

  • Participants
  • Parent commits 5b1b33c

Comments (0)

Files changed (1)

File gb_emulator/src/gb_input.cpp

 					case SDLK_q:
 						// Quit
 						exit(0);
+					case SDLK_r:
+						if (!recording_)
+						{
+							gb_.sound_.record("audio.wav");
+						}
+						else
+						{
+							gb_.sound_.stopRecording();
+						}
+						recording_ = !recording_;
+						break;
 
 					// Debugging
 					#ifdef DEBUG
 					case SDLK_w:
 						gb_.video_.drawWindow = !gb_.video_.drawWindow;
 						break;
-					case SDLK_r:
-						if (!recording_)
-						{
-							gb_.sound_.record("audio.wav");
-						}
-						else
-						{
-							gb_.sound_.stopRecording();
-						}
-						recording_ = !recording_;
-						break;
 					case SDLK_s:
 						gb_.video_.drawSprites = !gb_.video_.drawSprites;
 						break;