I don't really understand the shell-problem. Can you explain that more? That will give me a view of the situation. It seems that you don't want to use C but that you feel forced to do so. Why?
About sound in C: you have two options.
1: use the audio devices directly (e.g. /dev/dsp; you can access them just like files)
2: use an audio library that does the work for you
If you want to do complicated things (like playing mp3's, mod files, or dsp), then the second one is the only realistic one. But if you only want to do simple things, then you can use the first one.
For example if you have a file that plays nice with
cat soundfile > /dev/dsp
then you can do almost the same in C. Just open the sound file for reading, open /dev/dsp for writing and read & write bytes till the end of the file.
|