Discussion:
DirectSound to Stream data
(too old to reply)
JB
2007-09-26 20:13:05 UTC
Permalink
I have some data sampled from a data acquisition source. The data
does not reside in a WAV file.

I extract and display the data in a rolling chart, but I would also
like to send the data to the speakers using DirectSound, looking at
the SecondaryBuffer constructor it seems to insist on either a wav
file or stream (presumably also originating from file), is there any
way for me to send my raw data to the sound card (which is essentially
just a bunch of voltage levels) using DirectSound?

Thanks,

Joseph
Olie
2007-09-27 08:38:55 UTC
Permalink
Post by JB
I have some data sampled from a data acquisition source. The data
does not reside in a WAV file.
I extract and display the data in a rolling chart, but I would also
like to send the data to the speakers using DirectSound, looking at
the SecondaryBuffer constructor it seems to insist on either a wav
file or stream (presumably also originating from file), is there any
way for me to send my raw data to the sound card (which is essentially
just a bunch of voltage levels) using DirectSound?
Thanks,
Joseph
Put the data into a MemoryStream and then pass that into the
constructor.

Loading...