summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/portaudio/examples/paex_saw.c
diff options
context:
space:
mode:
author arbee <rb6502@users.noreply.github.com>2023-04-01 19:03:31 -0400
committer arbee <rb6502@users.noreply.github.com>2023-04-01 19:03:31 -0400
commit645bbe989ba5a93397c737d3107570fd0f42d5ed (patch)
tree956b374177cccda02ebe66b81847a92ba696d732 /3rdparty/portaudio/examples/paex_saw.c
parent4acca56e7ea49639da0ab8736e7b5fbad09310e9 (diff)
PortAudio: sync to upstream GitHub revision 0e9b386a1053261340bc8bb32335484ef77b258b [R. Belmont, PortAudio team]
* Tested and works on Windows, macOS, and Linux. * Fixes compatibility with macOS Ventura and bugfixes WASAPI and WDM-KS on Windows.
Diffstat (limited to '3rdparty/portaudio/examples/paex_saw.c')
-rw-r--r--3rdparty/portaudio/examples/paex_saw.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/3rdparty/portaudio/examples/paex_saw.c b/3rdparty/portaudio/examples/paex_saw.c
index 235f247e92b..caec0b02d7e 100644
--- a/3rdparty/portaudio/examples/paex_saw.c
+++ b/3rdparty/portaudio/examples/paex_saw.c
@@ -1,7 +1,7 @@
/** @file paex_saw.c
- @ingroup examples_src
- @brief Play a simple (aliasing) sawtooth wave.
- @author Phil Burk http://www.softsynth.com
+ @ingroup examples_src
+ @brief Play a simple (aliasing) sawtooth wave.
+ @author Phil Burk http://www.softsynth.com
*/
/*
* $Id$
@@ -31,13 +31,13 @@
*/
/*
- * The text above constitutes the entire PortAudio license; however,
+ * The text above constitutes the entire PortAudio license; however,
* the PortAudio community also makes the following non-binding requests:
*
* Any person wishing to distribute modifications to the Software is
* requested to send the modifications to the original developer so that
- * they can be incorporated into the canonical version. It is also
- * requested that these non-binding requests be included along with the
+ * they can be incorporated into the canonical version. It is also
+ * requested that these non-binding requests be included along with the
* license above.
*/
@@ -92,14 +92,14 @@ int main(void)
{
PaStream *stream;
PaError err;
-
+
printf("PortAudio Test: output sawtooth wave.\n");
/* Initialize our data for use by callback. */
data.left_phase = data.right_phase = 0.0;
/* Initialize library before making any other calls. */
err = Pa_Initialize();
if( err != paNoError ) goto error;
-
+
/* Open an audio I/O stream. */
err = Pa_OpenDefaultStream( &stream,
0, /* no input channels */
@@ -126,7 +126,7 @@ int main(void)
return err;
error:
Pa_Terminate();
- fprintf( stderr, "An error occured while using the portaudio stream\n" );
+ fprintf( stderr, "An error occurred while using the portaudio stream\n" );
fprintf( stderr, "Error number: %d\n", err );
fprintf( stderr, "Error message: %s\n", Pa_GetErrorText( err ) );
return err;