Page 1 of 2

AM 4.0.2 sound_loop bug

Posted: Fri Jun 18, 2021 11:45 pm
by Sling
HI,

Just come across an issue when using sound_loop(). It causes CTD for me. Anyone else confirm this?

Re: AM 4.0.2 sound_loop bug

Posted: Sat Jun 19, 2021 12:06 pm
by Corjan
Hi,


Seems to work fine here.

But on the subject, with AM 4.1 the whole sound system has been reworked, so my guess is that it will be resolved.

I expect to push another BETA in about a month from now. Would you mind testing it then on your system?


Corjan

Re: AM 4.0.2 sound_loop bug

Posted: Sun Jun 20, 2021 8:37 am
by jph
Sling wrote: Fri Jun 18, 2021 11:45 pm HI,

Just come across an issue when using sound_loop(). It causes CTD for me. Anyone else confirm this?
Hi,
If you post a sample code that causes the CTD then I am happy to test for you on my system.

Re: AM 4.0.2 sound_loop bug

Posted: Sun Jun 20, 2021 11:47 am
by Sling
Not much code just this.

sound_id = sound_add(“sound.wav”)

sound_loop(sound_id)

Re: AM 4.0.2 sound_loop bug

Posted: Sun Jun 20, 2021 12:13 pm
by Ralph
Crashes here as well. We'll try it with the upcoming beta to see if it still happens.

Re: AM 4.0.2 sound_loop bug

Posted: Sun Jun 20, 2021 1:36 pm
by Pkaser
Fwiw, I am also seeing new CTD's, but havent pinned it to sound. It did just start with the AM update I did last week and Ive spent no time investigating it yet.

Re: AM 4.0.2 sound_loop bug

Posted: Mon Jun 21, 2021 8:02 am
by jph
Sling wrote: Sun Jun 20, 2021 11:47 am Not much code just this.

sound_id = sound_add(“sound.wav”)

sound_loop(sound_id)
No worries, from the other posts the answer seems to be clear. ;)

Re: AM 4.0.2 sound_loop bug

Posted: Wed Jun 30, 2021 11:32 am
by Sling
4.1 Beta 1 has now fixed the loop issue. I can also confirm mp3's are working. However the stereo still needs work. It is in stereo but the left channel level is greater than the right by a noticeable amount.

Tony

Re: AM 4.0.2 sound_loop bug

Posted: Wed Jun 30, 2021 1:04 pm
by Corjan
Hi,


Managed to find the issue... For whatever reason (I doubt it is a good one), the openJDK JRE changes the balance of the whole application.
Just tried running it on the Oracle JRE, and things are normal again.

I'm planning to update the JRE down the road, hopefully a newer version of openJDK doesn't change the balance,


Corjan

Re: AM 4.0.2 sound_loop bug

Posted: Wed Jun 30, 2021 2:07 pm
by Corjan
Hi,

This might be the moment to upgrade java versions.
Will try moving from java 8 -> java 16 in the coming days.

Corjan