AudioEncoder
Description
AudioEncoder can convert your In-Game Sound into byte[] for streaming.
It’s compatible with our example networking systems FM Network UDP and FM WebSocket. Meanwhile, other 3rd party networking systems like PUN2, MIRROR and UNet are also supported.
Component Properties
StreamGameSound
- enable for capture In-Game Sound
ForceMono
- force the sound data in Mono capture mode
OutputChannels
- information of the device’s output channel
OutputSampleRate
- information of the device’s output sample rate
StreamFPS
- target frame rate for the stream
GZipMode
- use GZip method to compress the data
OnDataByteReadyEvent
- invoke when the decoded byte[] are ready
labelID
- encoder and decoder’s label ID should match