How to use in Assembly in ZX Spectrum Next
Quote from Maciej Miklas on 07/05/2025, 21:24I'm looking for a driver to play sound effects and eventually music on ZX Spectrum Next using Assembly, preferably SjASMPlus. I want to use it in-game (https://github.com/maciejmiklas/jetman-in-space).
Could someone point me in the right direction on how to start with it? Is there an example for the Next?
Thanks,
Maciej
I'm looking for a driver to play sound effects and eventually music on ZX Spectrum Next using Assembly, preferably SjASMPlus. I want to use it in-game (https://github.com/maciejmiklas/jetman-in-space).
Could someone point me in the right direction on how to start with it? Is there an example for the Next?
Thanks,
Maciej
Quote from Targhan on 02/06/2025, 00:47Hi! Sorry for the late reply, I wasn't notified about this new thread!
You can use any player (AKG, AKM, AKY player): check the "tester" folder in their respective folder. The Spectrum player should be working for a 3-channel song, as the SpecNext is compatible with it. For a 9-channel song, you can use the SPECNEXT specific player (AKY only). I suggest the AKY if you want speed and can spend a bit of memory.
In AT3, make the export as AKG/AKM/AKY, as it should be fine.
As for the source, since you're using SJAsmPlus, and the players are compatible with RASM, you should use Disark to "convert" the source into SJAsmPlus, which should work with the default Disark option (the default being Rasm/SJasmPlus). Check this page to understand how it works:
https://www.julien-nevo.com/arkostracker/index.php/using-a-song-in-production-using-any-assembler/
Let me know if it works!
Hi! Sorry for the late reply, I wasn't notified about this new thread!
You can use any player (AKG, AKM, AKY player): check the "tester" folder in their respective folder. The Spectrum player should be working for a 3-channel song, as the SpecNext is compatible with it. For a 9-channel song, you can use the SPECNEXT specific player (AKY only). I suggest the AKY if you want speed and can spend a bit of memory.
In AT3, make the export as AKG/AKM/AKY, as it should be fine.
As for the source, since you're using SJAsmPlus, and the players are compatible with RASM, you should use Disark to "convert" the source into SJAsmPlus, which should work with the default Disark option (the default being Rasm/SJasmPlus). Check this page to understand how it works:
Let me know if it works!
Quote from Maciej Miklas on 03/06/2025, 21:05Thank you 🙂
Thank you 🙂