mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-07-01 09:12:14 +02:00
Update main.c
This commit is contained in:
parent
1fbda95f43
commit
4d5e0c6c14
@ -11,13 +11,12 @@
|
||||
#include <SDL2/SDL_mixer.h>
|
||||
|
||||
// Main program entrypoint
|
||||
int main(int argc, char* argv[])
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// This example uses sdl2 library to play a mp3 file
|
||||
|
||||
consoleInit(NULL);
|
||||
|
||||
|
||||
Result rc = romfsInit();
|
||||
if (R_FAILED(rc))
|
||||
printf("romfsInit: %08X\n", rc);
|
||||
@ -36,7 +35,7 @@ int main(int argc, char* argv[])
|
||||
Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, MIX_DEFAULT_CHANNELS, 4096);
|
||||
|
||||
// Load sound file to use
|
||||
//Sound from https://freesound.org/people/jens.enk/sounds/434610/
|
||||
// Sound from https://freesound.org/people/jens.enk/sounds/434610/
|
||||
Mix_Music *audio = Mix_LoadMUS("romfs:/test.mp3");
|
||||
|
||||
// Main loop
|
||||
|
Loading…
Reference in New Issue
Block a user