examples: Print a description of the program to the console on startup.
This commit is contained in:
5
examples/audio/01-simple-playback/README.txt
Normal file
5
examples/audio/01-simple-playback/README.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
If you're running this in a web browser, you need to click the window before you'll hear anything!
|
||||
|
||||
This example code creates an simple audio stream for playing sound, and
|
||||
generates a sine wave sound effect for it to play as time goes on. This is the
|
||||
simplest way to get up and running with procedural sound.
|
||||
@@ -47,9 +47,6 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
|
||||
/* SDL_OpenAudioDeviceStream starts the device paused. You have to tell it to start! */
|
||||
SDL_ResumeAudioStreamDevice(stream);
|
||||
|
||||
/* (this is a web browser requirement, not an SDL thing.) */
|
||||
SDL_Log("If you're running this in a web browser, you need to click the window before you'll hear anything.");
|
||||
|
||||
return SDL_APP_CONTINUE; /* carry on with the program! */
|
||||
}
|
||||
|
||||
|
||||
5
examples/audio/02-simple-playback-callback/README.txt
Normal file
5
examples/audio/02-simple-playback-callback/README.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
If you're running this in a web browser, you need to click the window before you'll hear anything!
|
||||
|
||||
This example code creates an simple audio stream for playing sound, and
|
||||
generates a sine wave sound effect for it to play as time goes on. Unlike
|
||||
the previous example, this uses a callback to generate sound.
|
||||
@@ -79,9 +79,6 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
|
||||
/* SDL_OpenAudioDeviceStream starts the device paused. You have to tell it to start! */
|
||||
SDL_ResumeAudioStreamDevice(stream);
|
||||
|
||||
/* (this is a web browser requirement, not an SDL thing.) */
|
||||
SDL_Log("If you're running this in a web browser, you need to click the window before you'll hear anything.");
|
||||
|
||||
return SDL_APP_CONTINUE; /* carry on with the program! */
|
||||
}
|
||||
|
||||
|
||||
5
examples/audio/03-load-wav/README.txt
Normal file
5
examples/audio/03-load-wav/README.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
If you're running this in a web browser, you need to click the window before you'll hear anything!
|
||||
|
||||
This example code creates an simple audio stream for playing sound, and
|
||||
loads a .wav file that is pushed through the stream in a loop.
|
||||
|
||||
@@ -61,9 +61,6 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
|
||||
/* SDL_OpenAudioDeviceStream starts the device paused. You have to tell it to start! */
|
||||
SDL_ResumeAudioStreamDevice(stream);
|
||||
|
||||
/* (this is a web browser requirement, not an SDL thing.) */
|
||||
SDL_Log("If you're running this in a web browser, you need to click the window before you'll hear anything.");
|
||||
|
||||
return SDL_APP_CONTINUE; /* carry on with the program! */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user