ISpatialAudioMetadataWriter::Close method (spatialaudiometadata.h)

Completes any needed operations on the metadata buffer and releases the specified ISpatialAudioMetadataItems object.

Syntax

HRESULT Close();

Return value

If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
SPTLAUD_MD_CLNT_E_NO_ITEMS_OPEN
The supplied ISpatialAudioMetadataItems has not been opened with a call to Open.
SPTLAUD_MD_CLNT_E_NO_ITEMS_WRITTEN
No metadata items have been written to the supplied ISpatialAudioMetadataItems.
SPTLAUD_MD_CLNT_E_ITEM_MUST_HAVE_COMMANDS
No metadata commands have been written to the supplied ISpatialAudioMetadataItems.

Requirements

Requirement Value
Target Platform Windows
Header spatialaudiometadata.h

See also

ISpatialAudioMetadataWriter