VincentHellberg
Member
Hello everyone,
Hope you're all keeping safe in these troubling times.
I'm currently working on a music sequencer that is playing samples. Much like this: https://808303.studio/
I've gotten it to work very will with almost no lag. The sequencer is sample based so it plays Wav file using
the audio_play_sound() function. On web it works surprisingly well - with little to no lag even on low-end devices.
You can try it here: https://gamejolt.com/claim/YcHZVdpx
The idea is to make this into an app.
But as soon as I export the project as an android app I get crazy lagg and the sequencer basically becomes useless.
I've tried using delta time, which basically made it worse. And I've optimised the project to the peak of my abilities.
It runs as fast as can be.
So to fix this, I've decided on using audio buffers. I've search the entire web and back but I can't really wrap my head around how they work.
I already have audio files imported into the project - how do I create audio buffers from those files, is that even possible?
Has anyone attempted anything similar? Is there a way to fix this without audio buffers?
Any and all help would be very appreciated. Need to wrap my head around this before I pull out my hair!
Thanks in advance.
Hope you're all keeping safe in these troubling times.
I'm currently working on a music sequencer that is playing samples. Much like this: https://808303.studio/
I've gotten it to work very will with almost no lag. The sequencer is sample based so it plays Wav file using
the audio_play_sound() function. On web it works surprisingly well - with little to no lag even on low-end devices.
You can try it here: https://gamejolt.com/claim/YcHZVdpx
The idea is to make this into an app.
But as soon as I export the project as an android app I get crazy lagg and the sequencer basically becomes useless.
I've tried using delta time, which basically made it worse. And I've optimised the project to the peak of my abilities.
It runs as fast as can be.
So to fix this, I've decided on using audio buffers. I've search the entire web and back but I can't really wrap my head around how they work.
I already have audio files imported into the project - how do I create audio buffers from those files, is that even possible?
Has anyone attempted anything similar? Is there a way to fix this without audio buffers?
Any and all help would be very appreciated. Need to wrap my head around this before I pull out my hair!
Thanks in advance.