close

actual fun close()

Closes the writer, flushing any buffered data and releasing resources.

For formats that require a finalized header (e.g., WAV), this method writes the final header with the correct data size. Failing to call close may result in a corrupt output file.

After calling this method, no further writes may be performed. Calling close on an already-closed writer is a no-op.

Throws

if flushing buffered data fails.

actual fun close()

Closes the writer, flushing any buffered data and releasing resources.

For formats that require a finalized header (e.g., WAV), this method writes the final header with the correct data size. Failing to call close may result in a corrupt output file.

After calling this method, no further writes may be performed. Calling close on an already-closed writer is a no-op.

Throws

if flushing buffered data fails.

expect fun close()

Closes the writer, flushing any buffered data and releasing resources.

For formats that require a finalized header (e.g., WAV), this method writes the final header with the correct data size. Failing to call close may result in a corrupt output file.

After calling this method, no further writes may be performed. Calling close on an already-closed writer is a no-op.

Throws

if flushing buffered data fails.

actual fun close()

Closes the writer, flushing any buffered data and releasing resources.

For formats that require a finalized header (e.g., WAV), this method writes the final header with the correct data size. Failing to call close may result in a corrupt output file.

After calling this method, no further writes may be performed. Calling close on an already-closed writer is a no-op.

Throws

if flushing buffered data fails.

actual fun close()

Closes the writer, flushing any buffered data and releasing resources.

For formats that require a finalized header (e.g., WAV), this method writes the final header with the correct data size. Failing to call close may result in a corrupt output file.

After calling this method, no further writes may be performed. Calling close on an already-closed writer is a no-op.

Throws

if flushing buffered data fails.

actual fun close()

Closes the writer, flushing any buffered data and releasing resources.

For formats that require a finalized header (e.g., WAV), this method writes the final header with the correct data size. Failing to call close may result in a corrupt output file.

After calling this method, no further writes may be performed. Calling close on an already-closed writer is a no-op.

Throws

if flushing buffered data fails.

actual fun close()

Closes the writer, flushing any buffered data and releasing resources.

For formats that require a finalized header (e.g., WAV), this method writes the final header with the correct data size. Failing to call close may result in a corrupt output file.

After calling this method, no further writes may be performed. Calling close on an already-closed writer is a no-op.

Throws

if flushing buffered data fails.

actual fun close()

Closes the writer, flushing any buffered data and releasing resources.

For formats that require a finalized header (e.g., WAV), this method writes the final header with the correct data size. Failing to call close may result in a corrupt output file.

After calling this method, no further writes may be performed. Calling close on an already-closed writer is a no-op.

Throws

if flushing buffered data fails.