ZXDunny
Deep avatar
- Joined
- Oct 12, 2010
- Messages
- 2,585
Hi all -
I've been spending the time waiting for my pandora developing a BASIC interpreter. It's based on Sinclair BASIC, and has gained quite a following on the PC amongst Speccy enthusiasts. It's very fast and has lots of lovely commands for working with graphics and memory, but now I'd like to add sound. I was told that FMOD would be a good idea, but I'm not sure that it will be suitable (no pandora port of the library, AFAICS). My interpreter has been ported to linux, so I know it should be relatively simple to port to the Pandora.
What I need is:
1. An open-source sound API that is compatible with my development environment and portable between win32 and linux
2. Able to play sound samples from a buffer that I create at the rate and bitdepth I specify. The data will probably be raw PCM.
3. I'd like to expose the samples played to the user via a "memory bank" structure in the BASIC interpreter, so they can modify the samples
4. Be able to play music from MP3/MOD/S3M/XM/IT etc either from memory or streaming from disk.
I can write my own PCM extraction routines for WAV and other simple sample formats, but I'd like the API to handle loading MP3/OGG samples if possible. Under windows, I'd use a looping directsound buffer and inject my samples into that - and the most important thing is being able to edit the memory that holds the sample while the sample is playing if at all possible.
Can anyone suggest an API that would be suitable for use on the Pandora?
D.
I've been spending the time waiting for my pandora developing a BASIC interpreter. It's based on Sinclair BASIC, and has gained quite a following on the PC amongst Speccy enthusiasts. It's very fast and has lots of lovely commands for working with graphics and memory, but now I'd like to add sound. I was told that FMOD would be a good idea, but I'm not sure that it will be suitable (no pandora port of the library, AFAICS). My interpreter has been ported to linux, so I know it should be relatively simple to port to the Pandora.
What I need is:
1. An open-source sound API that is compatible with my development environment and portable between win32 and linux
2. Able to play sound samples from a buffer that I create at the rate and bitdepth I specify. The data will probably be raw PCM.
3. I'd like to expose the samples played to the user via a "memory bank" structure in the BASIC interpreter, so they can modify the samples
4. Be able to play music from MP3/MOD/S3M/XM/IT etc either from memory or streaming from disk.
I can write my own PCM extraction routines for WAV and other simple sample formats, but I'd like the API to handle loading MP3/OGG samples if possible. Under windows, I'd use a looping directsound buffer and inject my samples into that - and the most important thing is being able to edit the memory that holds the sample while the sample is playing if at all possible.
Can anyone suggest an API that would be suitable for use on the Pandora?
D.