0
0

Hi i am wondering if anyone can help me.
As part of a program i want to be able to play a sound then as the user moves the mouse layer more sounds on the end of the current sound playing. I was thinking i would be able to accomplish this by using a stream
when the mouse moves i would get the current position in the sound . Get the rest of this sound as a sample ,
lock it to get the raw data
add the new sounds i want to add on to the end of the data . (The sounds i want to add on will be in raw PCM data)
and then load this back up into a stream and play the stream.
would i be able to load the new data to a stream using FSOUND_Stream_Open()?
If anyone has any comments or suggestions i would greatly appreciated I just a bit unsure over how i should go about this.

  • You must to post comments
0
0

Thanks for the suggetion.I ve looked at that and it seems quite close to what i am looking for but i want to be able to pass a buffer of data to the calllback function. I m new to C++ so i m not quite sure how to do this. Will i be able to make the callback function a member of a class so it can access the buffer as a public variable or can the data can be passed as a parameter or is there any other way of getting the callback function to access this data or do i need to think of another way of going about this

Any help again would be greatly appreciated.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.