On Mon, October 13, 2008 2:56 pm, Sebastian Moors wrote:
> Thats a good point.. I can try to check this issue and implement some
> checks for null-pointers.

They're not always null.

I was thinking about perhaps a global state variable.  And possibly do
something like this:

typedef enum { Unknown=0, Init, Ready, Shutdown } AudioStatusType;
extern AudioStatusType AudioStatus;

int foo(void)
{
   AudioEngine::get_instance()->lock();
   if( H2Core::AudioStatus != Ready ) {
      return 0;
   }
   /* ... */
}


-- 
               G a b r i e l   M   B e d d i n g f i e l d


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to