The OpenD Programming Language

AudioStream.finalizeAndGetEncodedResultDisown

Finalize encoding and get internal buffer, which is disowned by the AudioStream. The caller has to call freeEncodedAudio manually. This can be called exactly one time, if a growable owned buffer was used.

struct AudioStream
nothrow @nogc @nogc
const(ubyte)[]
finalizeAndGetEncodedResultDisown
()

Return Value

Type: const(ubyte)[]

null in case of error (also isError flag), else an array of bytes.

Meta