You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/FullGuide.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -348,12 +348,12 @@ The callback does a non-blocking read from the input stream placing the data int
348
348
Note that in this example it is assumed the input and output streams have the same number of channels, format and sample rate. The format of the streams can be mismatched - as long as the code handles the translations properly.
349
349
350
350
#### Callback do's and don'ts
351
-
These are things the `onAudioReady` method should NOT do:
351
+
You should never perform an operation which could block inside `onAudioReady`. Examples of blocking operations include:
352
352
353
353
- allocate memory using, for example, malloc() or new
354
-
-any file operations such as opening, closing, reading or writing
355
-
-any network operations such as streaming
356
-
- use any mutexes or other synchronization primitives
354
+
- file operations such as opening, closing, reading or writing
355
+
- network operations such as streaming
356
+
- use mutexes or other synchronization primitives
357
357
- sleep
358
358
- stop or close the stream
359
359
- Call read() or write() on the stream which invoked it
0 commit comments