aboutsummaryrefslogtreecommitdiff
path: root/src/encoder_plugin.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-10-02 00:36:05 +0200
committerMax Kellermann <max@duempel.org>2012-10-02 00:36:05 +0200
commitd95e538020531432642b7703f85608778a234d70 (patch)
treec13edf9fef7b92e82ccb5520f0f352dd0699a57c /src/encoder_plugin.h
parentaa171dcc18e9b341b313e5b9c065a9f8b73b9695 (diff)
parentadbe8c409a17b85ec10eb131fb81e3da9036dcef (diff)
Merge branch 'v0.17.x'
Diffstat (limited to 'src/encoder_plugin.h')
-rw-r--r--src/encoder_plugin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/encoder_plugin.h b/src/encoder_plugin.h
index 68a89d57..e0748a13 100644
--- a/src/encoder_plugin.h
+++ b/src/encoder_plugin.h
@@ -119,6 +119,10 @@ encoder_finish(struct encoder *encoder)
* Before you free it, you must call encoder_close(). You may open
* and close (reuse) one encoder any number of times.
*
+ * After this function returns successfully and before the first
+ * encoder_write() call, you should invoke encoder_read() to obtain
+ * the file header.
+ *
* @param encoder the encoder
* @param audio_format the encoder's input audio format; the plugin
* may modify the struct to adapt it to its abilities
@@ -291,6 +295,8 @@ encoder_write(struct encoder *encoder, const void *data, size_t length,
/**
* Reads encoded data from the encoder.
*
+ * Call this repeatedly until no more data is returned.
+ *
* @param encoder the encoder
* @param dest the destination buffer to copy to
* @param length the maximum length of the destination buffer