mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-21 15:56:58 +02:00
Fix a documentation error.
This commit is contained in:
+8
-1
@@ -2675,9 +2675,16 @@ outputting any audio data. To output audio data, use `ma_encoder_write_pcm_frame
|
||||
example below:
|
||||
|
||||
```c
|
||||
framesWritten = ma_encoder_write_pcm_frames(&encoder, pPCMFramesToWrite, framesToWrite);
|
||||
ma_uint64 framesWritten;
|
||||
result = ma_encoder_write_pcm_frames(&encoder, pPCMFramesToWrite, framesToWrite, &framesWritten);
|
||||
if (result != MA_SUCCESS) {
|
||||
... handle error ...
|
||||
}
|
||||
```
|
||||
|
||||
The `framesWritten` variable will contain the number of PCM frames that were actually written. This
|
||||
is optionally and you can pass in `NULL` if you need this.
|
||||
|
||||
Encoders must be uninitialized with `ma_encoder_uninit()`.
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user