can't get AYFX to work

Page 4/4
1 | 2 | 3 |

By Manuel

Ascended (17701)

Manuel's picture

15-11-2020, 14:29

I'm not entirely sure. But just put it on whatever works for you Smile

By Retrofan

Paragon (1262)

Retrofan's picture

15-11-2020, 16:12

Manuel wrote:

Check whether you have the same delay in other games that make a sound directly when touching a key. If yes, then it's probably something in your system that causes openMSX to have a large sound lag. It happens sometimes.

Not sure, but when I try the latest Android build 0.15 of OpenMSX (SDL 1.2) on Android TV 9.0 Pie with set samples 768 and set frequency 48000, it seems the sound lag is very little or even is gone. Wink Earlier I tried OpenMSX on Android TV 8.0 Oreo, but then the lag seems to be larger. Don't know how we can check this in detail. Keyclick seems to be okay. My device got an update for Android TV 9.0 Pie last month, so probably some audio libraries were updated as well?

At default set samples is 2560 on Android build and set frequency is set at 22050.
Probably it's better to change it to set samples 768 and set frequency to 48000.
I'm using Xiaomi Mibox, so maybe someone else can test as well?

By Manuel

Ascended (17701)

Manuel's picture

15-11-2020, 19:18

That's good news. But on a phone it might be totally different. I'll try on mine soon.

By Manuel

Ascended (17701)

Manuel's picture

15-11-2020, 21:02

I tried 1024 and that sounds OK, but 512 is too low. 768 is OK, I think, indeed. And yes, the lag seems to be gone, as far as I can tell.
The default frequency is 44100 by the way, on all platforms.

This is on a Xiaomi Redmi 9, with Android 10.

By Retrofan

Paragon (1262)

Retrofan's picture

15-11-2020, 22:06

Thanks for testing! Then 1024 should be better than 2560 and maybe also better than 768 when there's a lot of data traffic. I will do a final test tomorrow.

By Retrofan

Paragon (1262)

Retrofan's picture

16-11-2020, 19:01

I did a final test and both 768 and 1024 seems to work fine. I think the preferable default value for Android version is 1024 to get rid of that annoying audio lag and don't have random interruptions.

By Bengalack

Champion (331)

Bengalack's picture

21-02-2021, 10:30

A tiny update on this discussion (and not directly about ayFX): Now that I have started to work on music, FM - YM2413, I experience that my value of 300 introduces artifacts. I therefore have to have at least 1024. The sad thing here, is that this introduces delay to the sound effects, like the jump-sound on the heroine in the game comes when she is somewhat up in the air :-/

Of course this will turn out great on a physical machine, but still. Wonder if this can be improved in the openmsx-experience in some way? Like two streams / two values?

By Bengalack

Champion (331)

Bengalack's picture

05-03-2021, 13:15

Bengalack wrote:

Wonder if this can be improved in the openmsx-experience in some way? Like two streams / two values?

@Manuel, did you see this?

I assume that I will use openmsx for video-capture of the game, so even if things sounds right on the real machine, it would be nice if it worked 100% in the emulator as well Smile

Page 4/4
1 | 2 | 3 |