audio: add file streaming support

When sharing a file, its audio will also be decoded and sent. Audio and
video are synchronized for the first loop of the file only. Further
loops desynchronize them as the audio and video are decoded separately
instead of with the same decoder.

Device audio is muted while streaming. Mixing of the microphone with the
file audio will be added in a later patch.

Adds common audio decoders for file streaming.

Change-Id: Id0593ce4f2d32c249eb7a9672b0091c0d6e07a00
This commit is contained in:
philippegorley
2018-10-25 13:28:21 -04:00
parent 5190419238
commit 005c6ffda3
4 changed files with 144 additions and 13 deletions

View File

@ -74,6 +74,10 @@ FFMPEGCONF += \
FFMPEGCONF += \
--enable-decoder=flac \
--enable-decoder=vorbis \
--enable-decoder=aac \
--enable-decoder=ac3 \
--enable-decoder=eac3 \
--enable-decoder=mp3 \
--enable-decoder=pcm_u24be \
--enable-decoder=pcm_u24le \
--enable-decoder=pcm_u32be \