New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Windows) Choppy audio with WASAPI2 #1227
Comments
Is that when using VLC engine by any chance? |
What output are you using in the Backend settings? Auto, Directsound, WASAPI or WASAPI2? |
I had been using the default "Wrapper audio sink for automatically detected audio sink". I switched to "Output to sound card via Direct Sound". After restarting Strawberry I no longer have issues. So it looks like this issue is limited to the wrapper? Also is it expected that restarting Strawberry is necessary after switching the backend? If so, maybe the settings needs a "restart required" label (like other setting changes that require restart). Processor: Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz 2.19 GHz |
Right, For me WASAPI2 was also choppy and stuttering. However, i dont have a very common or solid setup, to represent a good example. This is: its a firewire (presonus firestudio mobile) external soundcard (with custom drivers). Which already experiences some stuttering when a high load of network activity or file copying is happening. Probably some dma or latency shenanigans with the firewire bus. (but not affected by cpu load though).
In my case. Only STOP playing was enough to change the output. |
The bug is probably in GStreamer, I will add an entry to the FAQ about it for now. |
I tested and can confirm that only WASAPI2 has the issue. WASAPI and DirectSound both work for me. I normally play through an audio interface (Focusrite Scarlett 2i2, 1st Gen), sample rate 48000, buffer size 256. I also get choppy audio with a sample rate of 41000. In a reversal of what I expected, increasing the buffer size to the max 1024 made the audio dramatically worse (continuous distortion instead of occasional). Decreasing the buffer seemed to help reduce the frequency of choppy audio. I tried playing through the built-in computer speakers and still got choppy audio but only twice in 15 minutes. |
I have no issue with local playback, but when streaming my desktop/PC to Steam Link - so the audio output device changes to it - I hear chopped up audio too. May be on Opus files but not on mp3. |
Can someone test the latest from https://builds.strawberrymusicplayer.org/windows/msvc/, there is an utility
Replace |
I've changed the priority of the output/sinks so that directsound is picked first when Auto is selected (483b42d). |
@jonaski Thanks for looking into this. I downloaded the latest msvc-x64.exe. I followed your commands, but got the following error: Do I need to install anything besides Strawberry Music Player? I do see gst-play-1.0.exe in the current directory. |
same for me |
Run this command first: |
I set the variable then reran the original command, but got the same error. Any other tips? |
Thanks @cproensa |
I can reproduce the issue too now with a USB DAC, but not with the internal soundcard. |
I've removed WASAPI2 in the newest release, I will add it back when the issue is solved in GStreamer. |
Describe the bug
Choppy audio during normal playback.
To Reproduce
Play audio file from local computer using Strawberry.
Expected behavior
Accurate playback of the audio file.
For comparison, other audio players, all play the same file without choppy audio. I tested using Clementine, Exaile, foobar2000 and Groove.
Screenshots:
I recorded playback for the purpose of sharing with this ticket.
choppy audio.zip
(3 second sample. Choppy audio starts at 1.0 seconds. Ends at 1.5 seconds)
System Information:
Additional context
In case it is important, my audio files happen to all be FLAC format.
I opened the task manager to check CPU usage. It is never above 30% during the choppy audio.
The text was updated successfully, but these errors were encountered: