beatoraja icon indicating copy to clipboard operation
beatoraja copied to clipboard

Keysounds during gameplay keep dropping or cutting out on macOS

Open Hezzle opened this issue 1 year ago • 3 comments

This is a problem that occurs when playing every BMS. Some key sounds don't play, or sound weird (seems to be cut off) But it's not that there is no sound, I can still hear some of them, and there seems to be no pattern to "what sounds can and can't be played" in a BMS.

This problem only occurs with .ogg BMS, .wav BMS can be played normally. I tried OpenAL and portaudio and they both would have the same problem.

When you finish playing a BMS with sound problems, the terminal will suddenly spam a lot of errors like this:

Warning: Exception in distribution parsing: null
November 28, 2024 1:08:39 PM bms.player.beatoraja.song.SongInformation setDistribution

Like every MacOS user, my beatoraja-config.command has been modified and it looks like this (otherwise, the launcher won't start):

#!/bin/bash
export _JAVA_OPTIONS='-Dsun.java2d.opengl=true -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
cd "$(dirname "$0")"
export PATH_TO_FX='/Library/Java/JavaVirtualMachines/javafx-sdk-22.0.1'
export JAVA_HOME=`/usr/Libexec/java_home -v 21.0.2`
exec java -Xms4g -Xmx4g -Dfile.encoding="UTF-8" --module-path $PATH_TO_FX --add-modules=javafx.controls,javafx.fxml -cp beatoraja.jar:ir/* bms.player.beatoraja.MainLoader

Hezzle avatar Nov 30 '24 05:11 Hezzle

from #824 mine isn't ARM

Hezzle avatar Nov 30 '24 05:11 Hezzle

Hi @Hezzle , could you take it a try for this code patch while setting arch=x86-64?

Catizard avatar Apr 07 '25 04:04 Catizard

Hi @Hezzle , could you take it a try for this code patch while setting arch=x86-64?

I have built and tested it on my x86-64 macOS, and the keysounds seems to play well. Thanks for providing this code patch.

Hezzle avatar Apr 13 '25 12:04 Hezzle