# Custom Soundfield-format needs positional information when encoded

**URL:** <https://forums.unrealengine.com/t/custom-soundfield-format-needs-positional-information-when-encoded/155903>\
**Category:** Audio\
**Tags:** unreal-engine\
**Created:** [January 5, 2021, 3:04pm UTC](https://forums.unrealengine.com/t/custom-soundfield-format-needs-positional-information-when-encoded/155903 "2021-01-05T15:04:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d0ee7ef0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d0ee7ef0](https://forums.unrealengine.com/u/anonymous_user_d0ee7ef0)\
**Post date:** [January 5, 2021, 3:04pm UTC](https://forums.unrealengine.com/t/custom-soundfield-format-needs-positional-information-when-encoded/155903/1 "2021-01-05T15:04:34Z")

</div>

Hi there,  
I am really glad to see a nice soundfield workflow and endpoint-submixes for external decoding in UE4.  
I have implemented a custom (dummy) SoundField format that I would like to decode to VBAP in a SoundfieldEndpoint. This is all well and good and it appears to be doable but I have a specific problem:  
In my class **FCustomSoundfieldEncoderStream** (inherits from **ISoundfieldEncoderStream** ) the overridden method **void FCustomSoundfieldEncoderStream::Encode(const FSoundfieldEncoderInputData& InputData, ISoundfieldAudioPacket& OutputData)** is being called nicely and i can encode a mono/stereo/whatever source to my format.  
But I would like to use a soundfield not as an ambisonics file (which has direction “built in”) but as VBAP, which means I need to save the Audio and the direction it was coming from.  
Is there some way I could get the directional data somewhere? Or am I on the wrong path entirely?

EDIT:  
To clarify a little. I think I want somehow use a SoundfieldEndpoint with a spatialized source… But is that even posssible?
