tadataReader">
///     Returns a pointer to an instance of ISpatialAudioMetadataReader.
/// </param>
    HRESULT ActivateSpatialAudioMetadataReader(
        [out, annotation("_Outptr_result_nullonfailure_")] ISpatialAudioMetadataReader **metadataReader
        );
};




// This interface is used to write engine specific metadata commands
// The data written via this interface must adhere to the format defined by the spatial rendering engine
[
    object,
    uuid(0DF2C94B-F5F9-472D-AF6B-C46E0AC9CD05),
    pointer_default(unique),
    local
]
interface ISpatialAudioObjectForMetadataCommands : ISpatialAudioObjectBase
{
    // Writes a metadata command to the spatial audio object, individual commands may only be added once
    // per object per processing cycle. Valid commands and value lengths are defined by the metadataFormatId
    HRESULT WriteNextMetadataCommand(
        [in, annotation("_In_")] BYTE commandID,
        [in, size_is(valueBufferLength), annotation("_In_reads_bytes_opt_(valueBufferLength)")] void *valueBuffer,
        [in, annotation("_In_")] UINT32 valueBufferLength
    );

}


// This interface is used to write engine specific metadata when multiple metadata items with frame
// accurate placement per buffer is required.  This is typically used for streaming content via Media Foundation.
// The data written via this interface must adhere to the format defined by the spatial rendering engine
[
    object,
    uuid(DDEA49FF-3BC0-4377-8AAD-9FBCFD808566),
    pointer_default(unique),
    local
]
interface ISpatialAudioObjectForMetadataItems : ISpatialAudioObjectBase
{
    // Get a pointer to the ISpatialAudioMetadataItems object to add metadata items, release when done
    HRESULT GetSpatialAudioMetadataItems(
        [out, annotation("_Outptr_result_nullonfailure_")] ISpatialAudioMetadataItems **metadataItems
        );
}


[
    object,
    uuid(BBC9C907-48D5-4A2E-A0C7-F7F0D67C1FB1),
    pointer_default(unique),
    local
]
interface ISpatialAu