Skip to content
New issue

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

Audio engine glitch: Engine crashes when loading formats incompatible in specific devices #2

Open
JoseskVolpe opened this issue Apr 30, 2021 · 1 comment
Labels
Crash low-priority Flagged for patch later (comment the needs)

Comments

@JoseskVolpe
Copy link
Owner

JoseskVolpe commented Apr 30, 2021

  • MediaException Sans destroyed your universe
  • I have to destroy this stupid anomaly
    javax.microedition.media.MediaException: Cannot create a Player for: audio/mpeg
    at javax.microedition.media.Manager.getPlayerFromType(+52)
    at javax.microedition.media.Manager.createPlayer(+35)
    at javax.microedition.media.Manager.createPlayer(+53)
    at josesk.javameengine.Sound.Load(+505)
    at josesk.javameengine.Sound.Start(+133)
    at josesk.javameengine.Sound.Start(+5)
    at josesk.undertaleme.layout.Dialog.onTextStart(+14)
    at josesk.javameengine.Text.Update(+55)
    at josesk.undertaleme.layout.Dialog.Update(+7)
    at josesk.undertaleme.GameView.update(+25)
    at josesk.undertaleme.GameEngine.run(+306)
    Starting /Teleport.mp3
    Load() the following sound before Start()ing it:
    */Teleport.mp3
    Loading /Teleport.mp3
    Exception: javax/microedition/media/MediaException
    Load() exception: /Teleport.mp3
    *javax.microedition.media.MediaException: Cannot create a Player for: audio/mpeg
    Exception: javax/microedition/media/MediaException
    Start() exception: /Teleport.mp3
    *javax.microedition.media.MediaException: Cannot create a Player for: audio/mpeg
    Exception: javax/microedition/media/MediaException
    javax.microedition.media.MediaException: Cannot create a Player for: audio/mpeg
    at javax.microedition.media.Manager.getPlayerFromType(+52)
    at javax.microedition.media.Manager.createPlayer(+35)
    at javax.microedition.media.Manager.createPlayer(+53)
    at josesk.javameengine.Sound.Load(+505)
    at josesk.javameengine.Sound.Start(+133)
    at josesk.javameengine.Sound.Start(+5)
    at josesk.undertaleme.scenes.ErrorView.Run(+14)
    at josesk.undertaleme.GameView.run(+4)

Identified when debugging with Sun Wireless Toolkit 2.5.2, wich don't support .MP3 format
The rule is clear: If it's not working in a emulator, there WILL be many issues in real hardwares
It's very important in MMAPI as Java-enabled mobile devices vary their media format compatibilities a lot

@JoseskVolpe JoseskVolpe added the bug Something isn't working label Apr 30, 2021
@JoseskVolpe
Copy link
Owner Author

There's a benchmark app project going on to test this engine in real hardwares, There' some small modifications there. I'll mark it as low-priority for now, and patch it when the benchmark app is completed

@JoseskVolpe JoseskVolpe added the low-priority Flagged for patch later (comment the needs) label Apr 30, 2021
@JoseskVolpe JoseskVolpe added Crash and removed bug Something isn't working labels Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Crash low-priority Flagged for patch later (comment the needs)
Projects
None yet
Development

No branches or pull requests

1 participant