I have been an experienced MFC programmer for many years who has been developing commercial applications in Objective-C for Mac and iOS in recent years. I'm trying to speed up work with .Net and C # (as soon as you need to convert one of my commercial applications from Mac to PC).
Now Iβve worked through a couple of books and as an exercise to get to know better .Net (and C #). I decided to convert one of my commercial applications to .Net as a training exercise and everything is going well (the interface works, all data structures are good), but I need to be able to play audio.
My Mac application generates audio from a series of mathematical formulas - imagine a wave generator - not exactly the same, but similar. On a Mac, I generate audio as 16-bit signed raw audio, use Core Audio to configure the audio output routing, and then get a callback whenever a new audio buffer is required for audio routing (so that I can generate audio on the fly).
I need to do the same on a PC. Unfortunately, I find the MSDN documentation as an example of "Can't see a tree for trees," since such extensive documentation exists. I can find classes that will allow me to download and play mp3 / wav files, etc., but I need to generate real-time audio. Can someone point me in the right direction to find something that will allow me to fill the buffers on the fly when they play on them?
thanks
Richard Baxter
source share