servo / media

Mozilla Public License 2.0
82 stars 54 forks source link

Media element source node example plays at half speed and half pitch #381

Open aschey opened 3 years ago

aschey commented 3 years ago

When running the example media_element_source_node, the playback appears to play at half speed and half pitch. I was able to reproduce this on both Windows and Linux. I poked around briefly and it seems like the problem is related to dual channel audio. I changed the caps for the appsink that it's using to use a single channel and that fixed the problem, but that obviously causes the audio to play in mono instead of stereo, which isn't desirable. Here's the small change I made to demonstrate the change in behavior: https://github.com/aschey/media/commit/c01e07f33901825bbf613f49a01aa73ff22be98a