]> Repos - portaudio/commitdiff
Fix user-facing and non-user-facing typos
authorluz paz <luzpaz@users.noreply.github.com>
Sun, 24 Jan 2021 12:39:59 +0000 (07:39 -0500)
committerPhil Burk <philburk@mobileer.com>
Thu, 28 Jan 2021 01:40:26 +0000 (17:40 -0800)
Found via `codespell v2.1.dev0`
`codespell -q 3 -L chello,gord,guid,numer,pres,uint,wirth`

12 files changed:
doc/src/tutorial/writing_a_callback.dox
include/pa_win_wasapi.h
ltmain.sh
src/hostapi/coreaudio/notes.txt
src/hostapi/coreaudio/pa_mac_core.c
src/hostapi/coreaudio/pa_mac_core_old.c
src/hostapi/dsound/pa_win_ds.c
src/hostapi/wasapi/pa_win_wasapi.c
src/hostapi/wdmks/pa_win_wdmks.c
src/hostapi/wmme/pa_win_wmme.c
src/os/unix/pa_unix_util.c
test/patest_write_stop_hang_illegal.c

index 7c2f8d3ea1526e9555525d7bb81d1d3e85df19a0..f7d71b198b3059cb1aae58fd0136c56a7e72be28 100644 (file)
@@ -10,7 +10,7 @@ The next task is to write your own "callback" function. The "callback" is a func
 Before we begin, it's important to realize that the callback is a delicate place. This is because some systems perform the callback in a special thread, or interrupt handler, and it is rarely treated the same as the rest of your code.
 For most modern systems, you won't be able to cause crashes by making disallowed calls in the callback, but if you want your code to produce glitch-free audio, you will have to make sure you avoid function calls that may take an unbounded amount of time
 to execute. Exactly what these are depend on your platform but almost certainly include the following:  memory allocation/deallocation, I/O (including file I/O as well as console I/O, such as printf()), context switching (such as exec() or
-yield()), mutex operations, or anything else that might rely on the OS. If you think short critical sections are safe please go read about priority inversion. Windows amd Mac OS schedulers have no real-time safe priority inversion prevention. Other platforms require special mutex flags. In addition, it is not safe to call any PortAudio API functions in the callback except as explicitly permitted in the documentation.
+yield()), mutex operations, or anything else that might rely on the OS. If you think short critical sections are safe please go read about priority inversion. Windows and Mac OS schedulers have no real-time safe priority inversion prevention. Other platforms require special mutex flags. In addition, it is not safe to call any PortAudio API functions in the callback except as explicitly permitted in the documentation.
 
 
 Your callback function must return an int and accept the exact parameters specified in this typedef:
index e7cb421efa3d1360e692b4de5b883ec3809f7ec2..a3d82ee140ac7e675296bf20be4c57d053e3ec38 100644 (file)
@@ -332,7 +332,7 @@ typedef struct PaWasapiStreamInfo
     /** Specifies thread priority explicitly. Will be used only if paWinWasapiThreadPriority flag
        is specified.
 
-       Please note, if Input/Output streams are opened simultaniously (Full-Duplex mode)
+       Please note, if Input/Output streams are opened simultaneously (Full-Duplex mode)
        you shall specify same value for threadPriority or othervise one of the values will be used
        to setup thread priority.
     */
index d668a022dc278f73f97456b591dc00429b28c4ec..4a1ede7111ea6d110e4dd505718a34a1bee63882 100644 (file)
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -602,7 +602,7 @@ func_quote_for_eval ()
 
     case $func_quote_for_eval_unquoted_result in
       # Double-quote args containing shell metacharacters to delay
-      # word splitting, command substitution and and variable
+      # word splitting, command substitution and variable
       # expansion for a subsequent eval.
       # Many Bourne shells cannot handle close brackets correctly
       # in scan sets, so we specify it separately.
index 4db0b0e011dc6fa4fa8c91d7b90c9eb641d9f627..281cf01b5d5c135169f418f902e7ef8b5e1ea0b6 100644 (file)
@@ -64,7 +64,7 @@ the extent to which PA will attempt to "play nice" and to what extent it
 will interrupt other apps to improve performance. For example, if 44100 Hz
 sample rate is requested but the device is set at 48000 Hz, PA can either
 change the device for optimal playback ("Pro" mode), which may interrupt
-other programs playing back audio, or simple use a sample-rate coversion,
+other programs playing back audio, or simple use a sample-rate conversion,
 which allows for friendlier sharing of the device ("Play Nice" mode).
 
 Additionally, the user may define a "channel mapping" by calling
index 310422ce533ed4d8b2dbc42c0d1e1759b98237af..cac20185fc0acfd5f0e5ebf5f45d18a887697815 100644 (file)
@@ -2200,7 +2200,7 @@ static OSStatus AudioIOProc( void *inRefCon,
    /*
    static int renderCount = 0;
    static int inputCount = 0;
-   printf( "-------------------  starting reder/input\n" );
+   printf( "-------------------  starting render/input\n" );
    if( isRender )
       printf("Render callback (%d):\t", ++renderCount);
    else
index 0e9b357e9bf4515ca9a603003b3f8bb472bad386..6c9c6a13784df79fc9e0435e68fc9d23101f04ac 100644 (file)
@@ -96,7 +96,7 @@ typedef struct PaMacCore_S
 //    HANDLE processingThread;
 //    DWORD processingThreadId;
     
-    char throttleProcessingThreadOnOverload; // 0 -> don't throtte, non-0 -> throttle
+    char throttleProcessingThreadOnOverload; // 0 -> don't throttle, non-0 -> throttle
     int processingThreadPriority;
     int highThreadPriority;
     int throttledThreadPriority;
index 2a7f1a46ea9de406d21cbeb6e04c4865bd645182..8bcf659051958118cfb0c958ade5d7718be67548 100644 (file)
@@ -42,7 +42,7 @@
 */
 
 /* Until May 2011 PA/DS has used a multimedia timer to perform the callback.
-   We're replacing this with a new implementation using a thread and a different timer mechanim.
+   We're replacing this with a new implementation using a thread and a different timer mechanism.
    Defining PA_WIN_DS_USE_WMME_TIMER uses the old (pre-May 2011) behavior.
 */
 //#define PA_WIN_DS_USE_WMME_TIMER
@@ -322,7 +322,7 @@ static double PaWinDS_GetMinSystemLatencySeconds( void )
 NOTE: GetVersionEx() is deprecated as of Windows 8.1 and can not be used to reliably detect
 versions of Windows higher than Windows 8 (due to manifest requirements for reporting higher versions).
 Microsoft recommends switching to VerifyVersionInfo (available on Win 2k and later), however GetVersionEx
-is is faster, for now we just disable the deprecation warning.
+is faster, for now we just disable the deprecation warning.
 See: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724451(v=vs.85).aspx
 See: http://www.codeproject.com/Articles/678606/Part-Overcoming-Windows-s-deprecation-of-GetVe
 */
index 9273cb6fcccfcce153b19e93a795b9d19d65c4f3..533dcacdf33c0272fb31bff4ea4f4cf43b443087 100644 (file)
@@ -365,7 +365,7 @@ enum { WASAPI_PACKETS_PER_INPUT_BUFFER = 6 };
 // Mixer function
 typedef void (*MixMonoToStereoF) (void *__to, const void *__from, UINT32 count);
 
-// AVRT is the new "multimedia schedulling stuff"
+// AVRT is the new "multimedia scheduling stuff"
 #ifndef PA_WINRT
 typedef BOOL   (WINAPI *FAvRtCreateThreadOrderingGroup)  (PHANDLE,PLARGE_INTEGER,GUID*,PLARGE_INTEGER);
 typedef BOOL   (WINAPI *FAvRtDeleteThreadOrderingGroup)  (HANDLE);
@@ -3610,7 +3610,7 @@ static PaError ActivateAudioClientOutput(PaWasapiStream *stream)
     // Correct buffer to max size if it maxed out result of GetBufferSize
     stream->out.bufferSize = maxBufferSize;
 
-    // Get interface latency (actually uneeded as we calculate latency from the size of maxBufferSize)
+    // Get interface latency (actually unneeded as we calculate latency from the size of maxBufferSize)
     if (FAILED(hr = IAudioClient_GetStreamLatency(stream->out.clientParent, &stream->out.deviceLatency)))
     {
         LogHostError(hr);
@@ -3677,7 +3677,7 @@ static PaError ActivateAudioClientInput(PaWasapiStream *stream)
     // Correct buffer to max size if it maxed out result of GetBufferSize
     stream->in.bufferSize = maxBufferSize;
 
-    // Get interface latency (actually uneeded as we calculate latency from the size
+    // Get interface latency (actually unneeded as we calculate latency from the size
     // of maxBufferSize).
     if (FAILED(hr = IAudioClient_GetStreamLatency(stream->in.clientParent, &stream->in.deviceLatency)))
     {
index a5e25ad10902506e1cdca887ca5db0b07bab7101..7fae184e8e798453273f9758034c691fefadc175 100644 (file)
@@ -653,7 +653,7 @@ static BOOL IsEarlierThanVista()
 NOTE: GetVersionEx() is deprecated as of Windows 8.1 and can not be used to reliably detect
 versions of Windows higher than Windows 8 (due to manifest requirements for reporting higher versions).
 Microsoft recommends switching to VerifyVersionInfo (available on Win 2k and later), however GetVersionEx
-is is faster, for now we just disable the deprecation warning.
+is faster, for now we just disable the deprecation warning.
 See: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724451(v=vs.85).aspx
 See: http://www.codeproject.com/Articles/678606/Part-Overcoming-Windows-s-deprecation-of-GetVe
 */
index 18256c8f97f0d7178a053c90b5096983fb4bbff7..f8b1d7e4ec958210551020bd09630521c7027259 100644 (file)
 
 /* When client suggestedLatency could result in many host buffers, we aim to have around 8,
    based off Windows documentation that suggests that the kmixer uses 8 buffers. This choice
-   is somewhat arbitrary here, since we haven't observed significant stability degredation
+   is somewhat arbitrary here, since we haven't observed significant stability degradation
    with using either more, or less buffers.
 */
 #define PA_MME_TARGET_HOST_BUFFER_COUNT_    8
@@ -915,7 +915,7 @@ static void GetDefaultLatencies( PaTime *defaultLowLatency, PaTime *defaultHighL
 NOTE: GetVersionEx() is deprecated as of Windows 8.1 and can not be used to reliably detect
 versions of Windows higher than Windows 8 (due to manifest requirements for reporting higher versions).
 Microsoft recommends switching to VerifyVersionInfo (available on Win 2k and later), however GetVersionEx
-is is faster, for now we just disable the deprecation warning.
+is faster, for now we just disable the deprecation warning.
 See: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724451(v=vs.85).aspx
 See: http://www.codeproject.com/Articles/678606/Part-Overcoming-Windows-s-deprecation-of-GetVe
 */
@@ -2156,7 +2156,7 @@ struct PaWinMmeStream
     HANDLE processingThread;
     PA_THREAD_ID processingThreadId;
 
-    char throttleProcessingThreadOnOverload;    /* 0 -> don't throtte, non-0 -> throttle */
+    char throttleProcessingThreadOnOverload;    /* 0 -> don't throttle, non-0 -> throttle */
     int processingThreadPriority;
     int highThreadPriority;
     int throttledThreadPriority;
index a0d592d1cd63778b5621ab0d9bfa7cbfb846180c..459b2bef3eaccf52a892933ac42601327ca8d289 100644 (file)
@@ -231,7 +231,7 @@ PaError PaUtil_CancelThreading( PaUtilThreading *threading, int wait, PaError *e
 */
 pthread_t paUnixMainThread = 0;
 #else
-/*pthreads are opaque. We don't know that asigning it an int value
+/*pthreads are opaque. We don't know that assigning it an int value
   always makes sense, so we don't initialize it unless we have to.*/
 pthread_t paUnixMainThread = 0;
 #endif
index 39bc487d7ae1a0b72af7f5a401450bfeb0c8f6df..3d53d4f7aa96b0e7e8fb2bb6aae32311ff6c9342 100644 (file)
@@ -69,7 +69,7 @@ static float s_buffer[FRAMES_PER_BUFFER][2]; /* stereo output buffer */
  * illegal way, it may fail for reasons that are not PA bugs.
  */
 
-/* Wait for awhile then abort the stream. */
+/* Wait awhile then abort the stream. */
 void *stop_thread_proc(void *arg)
 {
     PaStream *stream = (PaStream *)arg;