Ok, so I looked in the archives and couldn't find an answer to this.  Apologies if I 
missed it.
Can anyone comment on this from the help docs on SndStreamBufferCallback: 
"Because of this, the function doesn't have access to the symbols that you create in 
your application.  Again, use the userData argument if you need to pass pointers to 
your symbols."
I ask because if I pass in a simple struct with my sound data, etc. as the userdata, 
my sound plays fine.  However, there are certain things that will cause it to blow up 
like SysCurAppDatabase, or calling virtual functions.  
If I remember correctly, virtual tables are stored in global space, and based on my 
current experience, I am interpreting the above comment as saying that globals are 
inaccessible which means that virtual functions are out.  However, I am stumped as to 
why SysCurAppDatabase would bomb.  Is it because my callback is actually getting 
called by a separate application (i.e. the sound manager)?  If I have to, I can make 
my code work with VERY primitive functionality, but I would at least like to know why 
I'm being crippled.  =)

Thanks in advance.

-Jon

-----------------------------
Jonathan Hays
Palm OS Certified Developer
http://hazelware.luggle.com 
-----------------------------


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to