D
D
Dmitry Korolev2018-05-23 23:57:52
Unity
Dmitry Korolev, 2018-05-23 23:57:52

How to find out about audio channels in a video?

I'm making a video player using the unity video player component.
How can I figure out what audio channels can be in a video?
I actually met with a mono channel
because it can be stereo as it will be presented?
I have one audio resource in the scene
when creating a video canvas, you need to figure out in the code how the channels will be parsed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Basmanov, 2018-05-24
@adressmoeistranici

Don't read the manual @ Ask questions
A video can have multiple tracks, the number of which can be found using audioTrackCount . A track can have several channels, their number can be found using GetAudioChannelCount . AudioSource is not necessary, but it can play both mono and stereo, one source for one track is enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question