Skip to content
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

Some Audio "choppy" with PulseAudio #37

Open
Keboose opened this issue Jan 9, 2021 · 0 comments
Open

Some Audio "choppy" with PulseAudio #37

Keboose opened this issue Jan 9, 2021 · 0 comments

Comments

@Keboose
Copy link

Keboose commented Jan 9, 2021

My OS is Arch Linux, kernel: 5.10.3-arch1-1. I am using PulseAudio for audio IO.

I have made these edits to the file /etc/pulse/default.pa:

# added tsched=0 to line
load-module module-udev-detect tsched=0

load-module module-switch-on-connect
load-module module-equalizer-sink
# added null-sink for soundboard loopback
load-module module-null-sink sink_name=virtualSink

I also made these edits to /etc/pulse/daemon.conf:

#; realtime-scheduling = yes
; realtime-scheduling = no

# I commented out this line:
#; alternate-sample-rate = 48000

Other than these changes, the Pulseaduio files are as they were installed. This is my soundboard.toml config file:

output_device     = "Starship/Matisse HD Audio Controller Analog Stereo" # optional else default device
simultaneous_playback = true # if false stop currently playing sounds when playing a new sound
stop_hotkey = "CTRL-ALT-E" # stop all sound
loopback_device   = "Null Output" # required: change to your virtual loopback output

I made the addition/changes to the lines load-module module-udev-detect and ; realtime-scheduling in an attempt to fix this issue, but they didn't change anything. My problem is that some, but not all, buttons play audio that is "choppy", as if there is a milliseconds-long pause between each chunk of audio played. I recorded a few buttons in Audacity and attached the audio here. I pressed 7 buttons under the included myinstants.com board: "ROBLOX oof", "Shut Up!", "FBI open UP", "Windows XP Error", "Sad Trombone", "BRUH", and "To be Continued (jojo)". Those all play fine for me if I play the MP3 directly in the browser, or download them and play them in VLC, but the last four do not play properly though the soundbaord. See the attached file:

weird audio.zip

I also tried un-commenting the alternate-sample-rate line, but that doesn't seem to help either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant