We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It looks like this mod (at least 1.7.10) is not mantained anymore but maybe somebody can help me with this problem.
I found out that mono sounds are played in single speaker.
In the code it's hardcoded not to use amount of channels defined by given file but always assume there is 2 channels. Here:
OpenFM/src/main/java/pcl/OpenFM/player/AudioPlayer.java
Lines 64 to 68 in f3e6c4c
That's obviously the reason. That's why (format.getChannels() > 1) ? AL10.AL_FORMAT_STEREO16 : AL10.AL_FORMAT_MONO16 will always return AL10.AL_FORMAT_STEREO16
(format.getChannels() > 1) ? AL10.AL_FORMAT_STEREO16 : AL10.AL_FORMAT_MONO16
AL10.AL_FORMAT_STEREO16
Line 132 in f3e6c4c
But I also found out that with AL10.AL_FORMAT_MONO16 sound doesn't appear at all. I'm not really good in OpenAL can sombody help me to fx this?
AL10.AL_FORMAT_MONO16
I used these files while testing: mono: http://music.konungstvo.ru/fall_of_the_magister.mp3 stereo: http://music.konungstvo.ru/fall_of_the_magister_stereo.mp3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It looks like this mod (at least 1.7.10) is not mantained anymore but maybe somebody can help me with this problem.
I found out that mono sounds are played in single speaker.
In the code it's hardcoded not to use amount of channels defined by given file but always assume there is 2 channels. Here:
OpenFM/src/main/java/pcl/OpenFM/player/AudioPlayer.java
Lines 64 to 68 in f3e6c4c
That's obviously the reason. That's why
(format.getChannels() > 1) ? AL10.AL_FORMAT_STEREO16 : AL10.AL_FORMAT_MONO16
will always returnAL10.AL_FORMAT_STEREO16
OpenFM/src/main/java/pcl/OpenFM/player/AudioPlayer.java
Line 132 in f3e6c4c
But I also found out that with
AL10.AL_FORMAT_MONO16
sound doesn't appear at all. I'm not really good in OpenAL can sombody help me to fx this?I used these files while testing:
mono: http://music.konungstvo.ru/fall_of_the_magister.mp3
stereo: http://music.konungstvo.ru/fall_of_the_magister_stereo.mp3
The text was updated successfully, but these errors were encountered: