[futurebasic] Re: Sound handle...

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1998 : Group Archive : Group : All Groups

From: allmedia@... (Sylvain Guillemette)
Date:
>Yes, you can keep the handle in memory. I would make SndHandle& a global, then
>do the GETRESOURCE in your initialization routine and lock the handle with
>HLOCK. Then you can play it anytime without calling GETRESOURCE or
>RELEASERESOURCE. When your program quits, check that SndHandle& is valid. If
>so then HUNLOCK and RELEASERESOURCE.

Thank you very much Al.

Last question: Why do i need to lock the resource in memory ?

Also, how do i call HLOCK ?  HLOCK(mySound&), HLOCK(@mySound&) or
HLOCK([mySound&])  ????

Same for HUNLOCK ?
I'm a bit lost when i encounter a @ and [ ].

TIA

SG

>
>Al Staffieri Jr.
>
>AlStaff@...
>http://members.aol.com/AlStaff/index.html
>--
>To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>