Compare commits

...

4 Commits

Author SHA1 Message Date
Reonu
32035cfb7f add more defines and change default sounds 2022-12-17 16:50:52 +01:00
Reonu
e100979877 disable error sound by default 2022-12-14 02:15:03 +01:00
Reonu
64225b7a19 added camera error define 2022-12-14 02:14:00 +01:00
Reonu
735c0ba438 add CAMERA_SOUND define 2022-12-13 23:41:29 +01:00
2 changed files with 22 additions and 4 deletions

View File

@@ -44,6 +44,16 @@
*/
#define PARALLEL_LAKITU_CAM
/**
* These defines decide whether the turning, error and zoom out/zoom in out sounds are enabled, and which sounds to play if enabled.
* The turning, zooming out and zooming in sounds have been replaced with less annoying ones.
* If you want the vanilla ones back, set them to SOUND_MENU_CAMERA_TURN, SOUND_MENU_CAMERA_ZOOM_OUT and SOUND_MENU_CAMERA_ZOOM_IN respectively.
*/
#define CAMERA_TURN_SOUND SOUND_MENU_MESSAGE_NEXT_PAGE
#define CAMERA_ZOOM_OUT_SOUND SOUND_MENU_MESSAGE_DISAPPEAR
#define CAMERA_ZOOM_IN_SOUND SOUND_MENU_MESSAGE_APPEAR
// #define CAMERA_ERROR_SOUND SOUND_MENU_CAMERA_BUZZ
/**
* Enables Puppy Camera 2, a rewritten camera that can be freely configured and modified.
*/

View File

@@ -4543,19 +4543,27 @@ void play_camera_buzz_if_c_sideways(void) {
}
void play_sound_cbutton_up(void) {
play_sound(SOUND_MENU_CAMERA_ZOOM_IN, gGlobalSoundSource);
#ifdef CAMERA_ZOOM_IN_SOUND
play_sound(CAMERA_ZOOM_IN_SOUND, gGlobalSoundSource);
#endif
}
void play_sound_cbutton_down(void) {
play_sound(SOUND_MENU_CAMERA_ZOOM_OUT, gGlobalSoundSource);
#ifdef CAMERA_ZOOM_OUT_SOUND
play_sound(CAMERA_ZOOM_OUT_SOUND, gGlobalSoundSource);
#endif
}
void play_sound_cbutton_side(void) {
play_sound(SOUND_MENU_CAMERA_TURN, gGlobalSoundSource);
#ifdef CAMERA_TURN_SOUND
play_sound(CAMERA_TURN_SOUND, gGlobalSoundSource);
#endif
}
void play_sound_button_change_blocked(void) {
play_sound(SOUND_MENU_CAMERA_BUZZ, gGlobalSoundSource);
#ifdef CAMERA_ERROR_SOUND
play_sound(CAMERA_ERROR_SOUND, gGlobalSoundSource);
#endif
}
void play_sound_rbutton_changed(void) {