diff options
author | Max Kellermann <max@duempel.org> | 2012-10-02 00:36:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-10-02 00:36:05 +0200 |
commit | d95e538020531432642b7703f85608778a234d70 (patch) | |
tree | c13edf9fef7b92e82ccb5520f0f352dd0699a57c /src/encoder_plugin.h | |
parent | aa171dcc18e9b341b313e5b9c065a9f8b73b9695 (diff) | |
parent | adbe8c409a17b85ec10eb131fb81e3da9036dcef (diff) | |
download | mpd-d95e538020531432642b7703f85608778a234d70.tar.gz mpd-d95e538020531432642b7703f85608778a234d70.tar.xz mpd-d95e538020531432642b7703f85608778a234d70.zip |
Merge branch 'v0.17.x'
Diffstat (limited to '')
-rw-r--r-- | src/encoder_plugin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/encoder_plugin.h b/src/encoder_plugin.h index 68a89d573..e0748a136 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 |