On Monday 13 October 2008 22:07:39 Gabriel M. Beddingfield wrote:
> 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;

This is clearly a valid point - and one that stings people more often when the 
program runs on multi-core machines. But brr, more global variables... May I 
suggest something like

AudioStatusType AudioEngine::state();

and
void AudioEngine::set_state( AudioStatusType );

instead, if it has to be done. Theres already a filewide global 
m_audioEngineState in hydrogen.cpp for the same purpose (I guess), but that's 
not visible in other files (I guess)

guessingly
 - Jakob Lund.


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