Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

NextBASIC PCM Player

Add support for playing PCM audio in the background in NextBASIC 路 By taylorza

CHANS contention

A topic by SimonGoodwin created Apr 10, 2025 Views: 38 Replies: 1
Viewing posts 1 to 2

Scary pokes but it鈥檚 neat how it makes 512 bytes of room for them within CHANS. 馃

However this interacts problematically when/if OPEN allocates 14 bytes for a file descriptor (the designed purpose for that area), meaning that file operations give Invalid I/O device if a file stream is used (opened, or even CLOSE #5) between .PLAYRAW and the next NEW.

Developer

Thanks Simon, :) yes the pokes are scary. Here is my comment from the code 

PLAYER    equ $5cf0        ;Player address (Goodluck)

I have a fix for the issue you raised, I was a little mathematically challenged. I had reserved space for CHANS but only 6 bytes, not sure why. I have updated it and will release a new version this weekend once I get a chance to test it a little more.