Archived

This topic is now archived and is closed to further replies.

sofsenint

DirectSound streaming audio

Recommended Posts

sofsenint    122
I''m trying to create a class to load a wave as streaming audio. Would I take all the data from the wave and put it into an array of USHORTs or whatever data type it is or constantly reopen the file and get the needed data out? Thanx!

Share this post


Link to post
Share on other sites
John Reynolds    122
You could manually stream your audio, although I would not recommend repeatedly closing and reopening the file as this would hurt performance a lot. You should just leave the file open and copy in the sections you want when you need them.

However, I would recommend looking into either DirectShow or DirectMusic as they both provide streaming functionality for you.

Cheers,
John

Share this post


Link to post
Share on other sites