Previous Thread  Next Thread

chat icon Anyone have info on editsound.c???

rwenzlaff

Posted: Wed Feb 05, 2003 3:52 am
Joined: 23 Oct 2002
Posts: 31
I've been trying to extend sgefant's work on "sound in the sequence editor" by drawing the sequence box with the waveform drawn on it for cueing.

However, the routines in editsound.c are giving me fits. I can't seem to find a reliable way to determine if the bSample associated with any particular bSound is valid. Even if I call sound_load_sample(sound) everytime I try to access the data, I eventually get garbage back in the sample data (and I end up throwing a floating point exception as I try to use it).

I think part of the problem stems from the fact that sgefant's code doesn't treat a sound sequence as a sound (the ones listed in G.main->sounds) but I'm not sure.

We have added code to writefile.c and readfile.c that seem to be saving/loading the bSound struct. Do we need to save the bSample too? I don't think so, since it's transient, but I could be wrong.

Bob (aka Det. Thorn)
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group