You are not logged in.

#1 2021-12-10 05:57:49

limpbizkitdragshow
Member
From: hell, michigan
Registered: 2021-12-10
Posts: 4

pulseaudio troubles (i think?)

hi all!

i've got myself a virtual machine in virtualbox running arch. i've noticed a recurring issue that i haven't been able to fix, although i've noticed changing the sample rate in /etc/pulse/daemon.conf does make a difference. at the default sample rate, after maybe two(?) minutes of audio playback, pulseaudio seems to freak out -- suddenly super loud, distorted audio that continually gets louder and more distorted until the audio cuts out entirely. restarting pulseaudio fixes this, but i'd rather not have to do that every time. i tried

default-sample-rate = 48000
avoid-resampling = yes

which helped somewhat, but only insofar as it postponed the problem another three or so minutes before the same thing happened. i've left every other option in the config file alone, they're all still set to their defaults, as far as i know. please let me know if there's any log or something i can provide that could help elucidate the problem, as i know pulseaudio doesn't log anything on its own by default. thanks!

running pulseaudio version 15.0


he never had the makings of a varsity athlete...

Offline

#2 2021-12-10 08:20:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,299

Re: pulseaudio troubles (i think?)

What's your host? If you have VMs you ideally want to configure the output sample rate of your guest to the output sample rate of your host so that it isn't necessary to sample twice. Avoid resampling cannot avoid resampling if it has to resample the input source anyway, which largely depends on what you're going to play back, the "most" robust thing you can do here is configure both the default and the alternate sample rate to the same value, so pulse does not actively attempt to juggle between two.

FWIW during the issue what's your output for

pacmd list-cards
pacmd list-sinks
pacmd list-sink-inputs
pulseaudio --dump-conf

from the host as well if it's linux or on windows check the configured rates in system settings

Offline

#3 2021-12-10 09:06:22

limpbizkitdragshow
Member
From: hell, michigan
Registered: 2021-12-10
Posts: 4

Re: pulseaudio troubles (i think?)

my host is macOS 10.14.6 actually, but my pulseaudio default was 44100 (the same as the host). what you're saying makes sense which is what befuddles me even more about this issue -- the problem was worse when the sample rates were the same. here's my output for those commands:

pacmd list-cards
1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_05.0>
	driver: <module-alsa-card.c>
	owner module: 6
	properties:
		alsa.card = "0"
		alsa.card_name = "Intel 82801AA-ICH"
		alsa.long_card_name = "Intel 82801AA-ICH with AD1980 at irq 21"
		alsa.driver_name = "snd_intel8x0"
		device.bus_path = "pci-0000:00:05.0"
		sysfs.path = "/devices/pci0000:00/0000:00:05.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "2415"
		device.product.name = "82801AA AC'97 Audio Controller"
		device.form_factor = "internal"
		device.string = "0"
		device.description = "Built-in Audio"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		input:analog-stereo: Analog Stereo Input (priority 65, available: unknown)
		output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)
		output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6565, available: unknown)
		output:analog-surround-21: Analog Surround 2.1 Output (priority 1300, available: unknown)
		output:analog-surround-21+input:analog-stereo: Analog Surround 2.1 Output + Analog Stereo Input (priority 1365, available: unknown)
		output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: unknown)
		output:analog-surround-40+input:analog-stereo: Analog Surround 4.0 Output + Analog Stereo Input (priority 1265, available: unknown)
		output:analog-surround-41: Analog Surround 4.1 Output (priority 1300, available: unknown)
		output:analog-surround-41+input:analog-stereo: Analog Surround 4.1 Output + Analog Stereo Input (priority 1365, available: unknown)
		output:analog-surround-50: Analog Surround 5.0 Output (priority 1200, available: unknown)
		output:analog-surround-50+input:analog-stereo: Analog Surround 5.0 Output + Analog Stereo Input (priority 1265, available: unknown)
		output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: unknown)
		output:analog-surround-51+input:analog-stereo: Analog Surround 5.1 Output + Analog Stereo Input (priority 1365, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <output:analog-stereo+input:analog-stereo>
	sinks:
		alsa_output.pci-0000_00_05.0.analog-stereo/#0: Built-in Audio Analog Stereo
	sources:
		alsa_output.pci-0000_00_05.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
		alsa_input.pci-0000_00_05.0.analog-stereo/#1: Built-in Audio Analog Stereo
	ports:
		analog-input-mic;input-microphone-1: Microphone / Microphone 1 (priority 8720, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-mic;input-microphone-2: Microphone / Microphone 2 (priority 8719, latency offset 0 usec, available: unknown)
			properties:
				device.icon_name = "audio-input-microphone"
		analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: unknown)
			properties:
				
		analog-input-aux: Analog Input (priority 8000, latency offset 0 usec, available: unknown)
			properties:
				
		analog-input-video: Video (priority 7000, latency offset 0 usec, available: unknown)
			properties:
				
		analog-output;output-amplifier-on: Analog Output / Amplifier (priority 9910, latency offset 0 usec, available: unknown)
			properties:
				
		analog-output;output-amplifier-off: Analog Output / No Amplifier (priority 9900, latency offset 0 usec, available: unknown)
			properties:
pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_00_05.0.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	state: RUNNING
	suspend cause: (none)
	priority: 9039
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 97.73 ms
	max request: 18 KiB
	max rewind: 18 KiB
	monitor source: 0
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	fixed latency: 99.94 ms
	card: 0 <alsa_card.pci-0000_00_05.0>
	module: 6
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "Intel 82801AA-ICH"
		alsa.id = "Intel ICH"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "Intel 82801AA-ICH"
		alsa.long_card_name = "Intel 82801AA-ICH with AD1980 at irq 21"
		alsa.driver_name = "snd_intel8x0"
		device.bus_path = "pci-0000:00:05.0"
		sysfs.path = "/devices/pci0000:00/0000:00:05.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "2415"
		device.product.name = "82801AA AC'97 Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "19188"
		device.buffering.fragment_size = "6396"
		device.access_mode = "mmap"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output;output-amplifier-on: Analog Output / Amplifier (priority 9910, latency offset 0 usec, available: unknown)
			properties:
				
		analog-output;output-amplifier-off: Analog Output / No Amplifier (priority 9900, latency offset 0 usec, available: unknown)
			properties:
				
	active port: <analog-output;output-amplifier-on>
pacmd list-sink-inputs
1 sink input(s) available.
    index: 3
	driver: <protocol-native.c>
	flags: START_CORKED 
	state: RUNNING
	sink: 0 <alsa_output.pci-0000_00_05.0.analog-stereo>
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	muted: no
	current latency: 103.33 ms
	requested latency: 99.94 ms
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	resample method: speex-float-1
	module: 8
	client: 10 <Rhythmbox>
	properties:
		media.name = "'Party Again' by 'TOPS'"
		application.name = "Rhythmbox"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "35"
		media.role = "music"
		application.process.id = "957"
		application.process.user = "val"
		application.process.host = "bigbootybitches"
		application.process.binary = "rhythmbox"
		application.icon_name = "rhythmbox"
		application.language = "en_US.UTF-8"
		window.x11.display = ":0.0"
		application.process.machine_id = "da34a8b514ba4ba098701712ce1cd2dd"
		application.process.session_id = "1"
		module-stream-restore.id = "sink-input-by-media-role:music"
		media.title = "Party Again"
		media.artist = "TOPS"
pulseaudio --dump-conf
### Read from configuration file: /etc/pulse/daemon.conf ###
daemonize = no
fail = yes
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
allow-module-loading = yes
allow-exit = yes
use-pid-file = yes
system-instance = no
local-server-type = user
cpu-limit = no
enable-shm = yes
flat-volumes = no
rescue-streams = yes
lock-memory = no
exit-idle-time = 20
scache-idle-time = 20
dl-search-path = /usr/lib/pulse-15.0/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target = 
log-level = notice
resample-method = auto
avoid-resampling = no
enable-remixing = yes
remixing-use-all-sink-channels = yes
remixing-produce-lfe = no
remixing-consume-lfe = no
lfe-crossover-freq = 0
default-sample-format = s16le
default-sample-rate = 44100
alternate-sample-rate = 48000
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 4
default-fragment-size-msec = 25
enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 8000
deferred-volume-extra-delay-usec = 0
shm-size-bytes = 0
log-meta = no
log-time = no
log-backtrace = 0
rlimit-fsize = -1
rlimit-data = -1
rlimit-stack = -1
rlimit-core = -1
rlimit-rss = -1
rlimit-as = -1
rlimit-nproc = -1
rlimit-nofile = 256
rlimit-memlock = -1
rlimit-locks = -1
rlimit-sigpending = -1
rlimit-msgqueue = -1
rlimit-nice = 31
rlimit-rtprio = 9
rlimit-rttime = 200000

the sample rates are the same on the host as on the guest!! argh!!!

Last edited by limpbizkitdragshow (2021-12-10 09:11:21)


he never had the makings of a varsity athlete...

Offline

Board footer

Powered by FluxBB