Skip to content

Some Audio "choppy" with PulseAudio #37

@Keboose

Description

@Keboose

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions