leaningtech / cheerpj-meta

Run Java 8 applications, libraries, applets, Java Web Start, and Oracle Forms on the web without legacy plugins.
https://labs.leaningtech.com/cheerpj
434 stars 21 forks source link

Support esoteric audio formats #140

Open ddyer0 opened 2 years ago

ddyer0 commented 2 years ago

Some (all?) of the sound files trap to the debugger the first time they are played. I use .au format.

_c4pcQBaicmTasfDZq9EhseHWKg1aIthbbVbjZnSetBytePosieWZWE25 (rt.jar.com.sun.media.sound.js:838) _c4pcQBaicmTasfDZq9EhseHWKg1aIthbbVjqZcu7apLSKVDonThEn (rt.jar.com.sun.media.sound.js:843) _c4pcQBaicmTasfDZGnFhseHWKg1aIthbbVfSVrrin3cYtTUeX0xeadrQJecb8iSNo (rt.jar.com.sun.media.sound.js:982) _c4pcQBaicmTasLCZqn_iqfalrkuTg1aId3cYtV0eq0KiZZI3n (rt.jar.com.sun.media.sound.js:976) _c4pcQBaicmTasLCZqn_iqfalrkaTg1aId3cYd$ZcaMxn (rt.jar.com.sun.media.sound.js:976) _c4pbMpGfc4QaQ$yWAfDa0AudioClip4playE4 (rt.jar.sun.applet.js:198) (anonymous) (VM1949:4) runContinuationStack (loader.js:489) cheerpjSchedule (loader.js:1220) postMessage (async)

...

alexp-sssup commented 2 years ago

Not all audio formats/APIs are supported at this stage, due to low interest from commercial users.

Not all the debugger statements though are fatal error, the sounds might work anyway possibly with degraded experience.

ddyer0 commented 2 years ago

Yes, they do work if I proceed from the debugger, but the behavior wouldn't be acceptable expect at this early stage of development. From the use viewpoint the app just hangs until you're smart enough to open the inspector and punch the contunue button. Even at this stage, these assert/debugger calls would be better as a javascript alert.

alexp-sssup commented 2 years ago

From the use viewpoint the app just hangs until you're smart enough to open the inspector and punch the contunue button.

I am not sure I understand. If the devtools are closed the debugger statements are completely ignored by all browser. The regular users never sees them.

ddyer0 commented 2 years ago

ok, I guess I always have the debugger open :) and I'm encountering other things that make the app crap out.