0
0

According to the documentation:
“Shuts down and releases an FSOUND stream.”

By “release”, do they mean that Stream_Close will delete the pointer passed to it, or will I have to do that myself?

Thanks

  • You must to post comments
0
0

If you mean the stream handle, yes, that is deleted.

Any locked stream buffer pointers should (IIRC) be deleted when the stream is deleted. Brett may have clarification on this point.

Any data pointers you pass in to FMod are your responsibility to clean up.

  • You must to post comments
0
0

Okay, thanks

  • You must to post comments
0
0

[quote="brett":1f2zehba]’pointer passed to it’?[/quote:1f2zehba]
Yes, according to the docs, here is the prototype for FSOUND_Stream_Close:
[code:1f2zehba]signed char F_API FSOUND_Stream_Close(
FSOUND_STREAM *stream
);
[/code:1f2zehba]
One passes it a pointer to a FSOUND_STREAM, which one presumably got from FSOUND_Stream_Open. My question was, in addition to closing the stream represented by said pointer, does Stream_Close also delete the pointer itself. It does. :)

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.