captainys / TOWNSEMU

FM Towns Emulator "Tsugaru"
BSD 3-Clause "New" or "Revised" License
247 stars 18 forks source link

Archlinux with pulseaudio and pulseaudio-alsa: no sound #15

Open heavysink opened 3 years ago

heavysink commented 3 years ago

I am using pulseaudio and pulseaudio-alsa in archlinux but there is no sound when I try to run any game. ALSA config has been already set to pulse as default.

mz1193 commented 3 years ago

Can confirm this on Linux Mint 20, no sound, everything else seems to work perfectly though.

captainys commented 3 years ago

Sorry, I'm going to look into it when able. I haven't used pulse-audio quite long time, and need to refresh my DRAM.

davemoore22 commented 1 year ago

On Ubuntu 22, playing Wizardry 5, I can get some sound-effects, but no music. The console is semi-constantly spamming "ALSA: Recover from underrun" messages.

captainys commented 1 year ago

OK. There might be two problems. Does the sound effect playing correctly? Or is it choppy? ALSA requires constant polling, and the message is telling the polling missed a timing. Unless it misses the timing badly, it is inaudible usually. But, if it is missing wildly, can you try reducing the clock speed to like 12MHz? The first-gen FM Towns was 16MHz for which most TOWNS games are designed for. But, due to heavy memory-access wait, it ran pretty much like 8 to 12MHz. Lower clock speed gives VM more time for handling sound.

Wiz5 plays BGM from CDDA. If you are not getting BGM, which means it is not playing CDDA. First, can you double check you are using MDS/MDF or BIN/CUE format, not ISO? ISO does not include audio tracks. If MDS/MDF or BIN/CUE, can you double check your image includes audio tracks?

Thanks!

davemoore22 commented 1 year ago

OK, so setting clock speed to 12 Mhz doesn't make a difference alas. Here's output after starting up Tsugaru with the following to run Wizardry 5:

/Tsugaru_CUI ./ROMS -CD ./WIZ5/Wiz5.iso -FD0 ./WIZ5/Wiz5.d77 -KEYBOARD TRANS2 -SCALE 200 -MAXIMIZE -QUICKSTATESAVE ./quicksave -FREQ 12

image

I'm running the ISO, which I converted from MDS, so let me get back to you on the background music thing.