How can I play a sound based on waveform data that my .Net program is generating from user input and mathematical functions? By "waveform data" I am mean SPL values in a fixed interval time-series (probably 44.1 kHz). I presume that this requires some kind of streaming buffer arrangement.
Note, that this has to be live/real-time, so just creating a .wav file and then playing that will not be sufficient. VB.net is preferred, but C# is acceptable also.
Just to clarify: What I am looking for is a simple working code example.