Closed sjnam closed 3 years ago
Thank you for your wonderful PR! !! Previously, I had received an opinion from another person that there was no sound on my mac, but I couldn't improve it without my knowledge of programming. I don't have mac or linux, so I'm sorry I can't check the operation. However, for many users of mac and linux, I would like to merge this PR and release it immediately.
Mac users using Lizzie with this PR have reported that there is still no sound. Is further improvement possible?
On my mac and linux it sounds fine. I have no problem with sound.
Is that so ... does that mean that there is a problem with the usage environment of individual users? By the way, the user who has reported the problem says that the problem is that the sound folder is specified as an absolute path, and if this is a relative path, it will work.
The sound folder and lizzie-improved jar file must be in the same directory.
The user reporting the bug said:
The error message looks like this:
No. If a user has a Lizzie with this PR and the sound folder not exist and the user use mac or linux, then she or he has an error message "/sound/Stone.wav" not "\sound\Stone.wav". So, maybe the user does not have a Lizzie with this PR.
Sorry, my explanation was inadequate. The above error message is from a long time ago (about a year). Naturally, this is when I used lizzie without this PR being used.
We just received a notice from the person who reported the error. The error was caused by not having the Lizzie directory as the current directory when starting Lizzie. "java -jar lizzie/lizzie-0.7.4-shaded.jar" The error seems to have occurred because of the way it was started. cd lizzie java -jar lizzie-0.7.4-shaded.jar By starting it like this, the sound seems to have come out successfully. I apologize for the extra trouble.
At last, I understand the situation what you say. You are right, when you start lizzie with "java -jar lizzie/lizzie-0.7.4-shaded.jar", the sound dose not play.
Even though when you lizzie start with the above command, you want the sound play well?
Yes, if it is possible, I would like to know how it is done.
The "sound" folder should be located in a directory where "java" command is executed. so, "cd lizzie; java ...." works.
There are two solution I think.
IMHO, "Play Sound" is not an important function in a Lizzie. If you don't like my play-sound patch, you can revert it. I don't mind it. :-)
I love your Lizzie-improvements project!
Thank you.
I am not a computer programmer, I merely compile and provide lizzie. Therefore, people who can program like you are very valuable to me. I would be very happy if you could actively create a pull request for me if you notice anything in the future.
Thank you very much.
"Play Sound" dose not work in linux or mac.