SuRGeoNix / Flyleaf

Media Player .NET Library for WinUI 3/ WPF/WinForms (based on FFmpeg/DirectX)
GNU Lesser General Public License v3.0
712 stars 100 forks source link

When multiple players play the same file, the sound may be louder or softer #432

Closed Lizhengbo0304 closed 7 months ago

Lizhengbo0304 commented 7 months ago

I used the Flyleaf MultiPlayer example to play the same file on four players successively. The sound size I heard was inconsistent, and sometimes the contrast was quite obvious (PS: Volume=100 for all players)

SuRGeoNix commented 7 months ago

@Lizhengbo0304 The quality of mixing the sounds is the XAudio2 default. It is impossible to make 100% sync audio between the players so it's normal to not have the exact same sound (should execute source voice Start at the exact time).

I tried to use a single Mastering Voice for all the players and tried different AudioStreamCategory but I didn't notice any difference.

The right way to resolve this, would be with FFmpeg filters/merge, so I will close this as duplicate of #408