Sfoglia il codice sorgente

comments: Fixed a few typos I ran into in the audio code.

Ryan C. Gordon 5 mesi fa
parent
commit
483d1c36ed

+ 1 - 1
examples/audio/04-multiple-streams/README.txt

@@ -1,5 +1,5 @@
 If you're running this in a web browser, you need to click the window before you'll hear anything!
 If you're running this in a web browser, you need to click the window before you'll hear anything!
 
 
-This example code loads two .wav files, puts them an audio streams and binds
+This example code loads two .wav files, puts them in audio streams and binds
 them for playback, repeating both sounds on loop. This shows several streams
 them for playback, repeating both sounds on loop. This shows several streams
 mixing into a single playback device.
 mixing into a single playback device.

+ 1 - 1
examples/audio/04-multiple-streams/multiple-streams.c

@@ -1,5 +1,5 @@
 /*
 /*
- * This example code loads two .wav files, puts them an audio streams and
+ * This example code loads two .wav files, puts them in audio streams and
  * binds them for playback, repeating both sounds on loop. This shows several
  * binds them for playback, repeating both sounds on loop. This shows several
  * streams mixing into a single playback device.
  * streams mixing into a single playback device.
  *
  *

+ 2 - 2
include/SDL3/SDL_audio.h

@@ -1583,8 +1583,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_PauseAudioStreamDevice(SDL_AudioStream *str
  * previously been paused. Once unpaused, any bound audio streams will begin
  * previously been paused. Once unpaused, any bound audio streams will begin
  * to progress again, and audio can be generated.
  * to progress again, and audio can be generated.
  *
  *
- * Remember, SDL_OpenAudioDeviceStream opens device in a paused state, so this
- * function call is required for audio playback to begin on such device.
+ * SDL_OpenAudioDeviceStream opens audio devices in a paused state, so this
+ * function call is required for audio playback to begin on such devices.
  *
  *
  * \param stream the audio stream associated with the audio device to resume.
  * \param stream the audio stream associated with the audio device to resume.
  * \returns true on success or false on failure; call SDL_GetError() for more
  * \returns true on success or false on failure; call SDL_GetError() for more