Yes I would be interested in this too.
I'd like to use the device to control things in the real world. I don't have bluetooth and wifi-to-serial devices are half the price of an entire android device, so I had an idea of using the sound output to create serial data waveforms.
However, one needs to create lots of files and saving them and reloading them to flash memory will eventually wear out the memory?
In a simplistic sense, all one really needs to do is create an array of bytes or integers (8 bit or 16 bit sound) and then play it. So the input comes from an array rather than from a .wav file.
However, I found this thread
http://www.b4x.com/forum/basic4android-updates-questions/7220-sound-support.html and as of the 7th Jan, this looks like it is not possible.
I have another big picture idea that might allow blind people to be able to 'see' using sound. This is the general idea
Teaching the blind to see through sound | technology The computing power to do this has been around for a long time but it has not been portable until now. But with a fast language like Android4Basic and a portable device with a camera and audio output, the building blocks are almost there. Addit: The world moves fast. It now is on the android. This didn't exist last time I looked
http://www.seeingwithsound.com/
Capture a picture
Process it in real time - extract out key features
Convert to sounds
So it would be very useful to be able to create an array, fill it with, say, a sine wave, and then play that array.
Would this be hard to code?