Wieku / danser-go

Dancing visualizer of osu! standard maps and custom osu! client written in Go. Also a generator for osu! videos.
Other
753 stars 103 forks source link

BASS driver failed to initialize #308

Closed HMMMTH closed 1 year ago

HMMMTH commented 1 year ago

Describe the bug When I attempt to run Danser it comes up with an error saying that BASS cannot find a free/valid driver, I thought this was because pulseaudio was currently using the sound card but even after disabling the audio device it still comes up with the same error message.

Screenshots https://cdn.discordapp.com/attachments/1007005322549940308/1057442048933892157/image.png

Logs 2022/12/27 17:12:08 ------------------------------------------------------------------- 2022/12/27 17:12:08 danser-go version: 0.8.3 2022/12/27 17:12:08 Ran using: [/home/ayush/Downloads/danser-0.8.3-linux/danser-cli] 2022/12/27 17:12:08 OS: arch "rolling" 2022/12/27 17:12:08 CPU: Intel(R) Core(TM) i7-4600M CPU @ 2.90GHz, 1 cores 2022/12/27 17:12:08 RAM: 16 GiB 2022/12/27 17:12:08 ------------------------------------------------------------------- 2022/12/27 17:12:08 Checking Github for a new version of danser... 2022/12/27 17:12:08 You're using the newest version of danser. 2022/12/27 17:12:08 No beatmap specified, closing... 2022/12/27 17:12:08 SettingsManager: Loading "/home/ayush/Downloads/danser-0.8.3-linux/settings/default.json" 2022/12/27 17:12:08 SettingsManager: "/home/ayush/Downloads/danser-0.8.3-linux/settings/default.json" loaded! 2022/12/27 17:12:08 ApiConnector: Loading "/home/ayush/Downloads/danser-0.8.3-linux/settings/credentials.json"

Computer configuration: Operating System: Arch Linux x86_64, Kernel version 6.0.11, KDE (X11), Pulseaudio sound server. CPU: Intel i7 4600M GPU: HD 4600 (OGL 4.6 MESA) Sound Card: HDA Intel PCH Analog, Razer USB Sound card (Both tested).

HMMMTH commented 1 year ago

Sorry I realize now this isn't an issue with BASS but an issue with my ALSA configuration, for people who run into this issue this problem is related to the default ALSA device. This issue can be replicated by having no configuration in /etc/modprobe.d and the obvious solution is to just put the configuration manually in that directory.

SOLUTION: Check the kernel driver name of your sound card by entering the command lspci -knn|grep -iA2 audio.

00:1b.0 Audio device [0403]: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller [8086:8c20] (rev 04)
        Subsystem: Lenovo ThinkPad T440p [17aa:220e]
        Kernel driver in use: HERE>>>snd_hda_intel<<<

Check the card number assigned to your soundcard by entering aplay -l HERE >>>card 1<<<: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4] Subdevices: 1/1 Subdevice #0: subdevice #0

Make a text file in /etc/modprobe.d

Add options [Driver Name] index=[Sound card Number] in line 1 of the text file and save it.

Restart computer and test Danser again.

Hopefully this will solve such issues.

HMMMTH commented 1 year ago

Closed (Oh yea and make sure to run danser under sudo)