SDL/examples/audio/02-simple-playback-callback
Nicolas Firmo 842f6dc402
Fixed wrong type of phase (#12014)
`phase` should be a `float` value that ranges between `0` and `1`.
2025-01-17 18:12:47 -08:00
..
README.txt examples: Print a description of the program to the console on startup. 2024-07-30 12:23:07 -04:00
simple-playback-callback.c Fixed wrong type of phase (#12014) 2025-01-17 18:12:47 -08:00

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.