Archived

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

DirectSound streaming audio

This topic is 5535 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
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