Page 1 of 1

Double Functionality

Posted: Sun 17 Jun, 2007 2:57 am
by ProphetsDementia
Can you play sounds from Omnicalc while using the TI-OS functions?
(e.g. Moving a character and play a footstep sound for every move.)

Also is there a way to make animations (movies, intros for games) for the calc?

Posted: Sun 17 Jun, 2007 3:49 am
by Tyler
You won't get much of a sound while calling a TI-OS function, maybe garbage if anything at all. TI-OS really wasn't meant for multi-tasking to begin with. The only way to correctly render sound would involve coding all of your own routines from scratch that you would need (at least, this is how I think it would be done...)

And yes, movies and animations are possible on the calc. Just load series of (repeating?) pictures or sprites...

Re: Double Functionality

Posted: Sun 17 Jun, 2007 3:52 am
by Jim e
ProphetsDementia wrote:Can you play sounds from Omnicalc while using the TI-OS functions?
(e.g. Moving a character and play a footstep sound for every move.)
No

Also is there a way to make animations (movies, intros for games) for the calc?
Sketchy

Posted: Sun 17 Jun, 2007 6:52 pm
by Delnar_Ersike
Well, I think you can make it so that the sound is played right before the command to step forward, but only if the sound is pretty short. Otherwise, no. Plus, Omnicalc messes up xLib on all but a few calcs (my calc is one of the few), so you have to make sure nobody has xLib installed before they start playing. Oh, and coding sound with Omnicalc is a nightmare.

Posted: Sun 17 Jun, 2007 8:10 pm
by King Harold
IF you would do it like that, then you can only play sound when nothing else is happening, and that would make things slow..

It might be better to store an animation as an animation though btw. Mostly, not every pixel changes when you display the next frame, technically you only have to store those that do - if you XOR them then it will leave you with a lot of 0x00's that can be RLE-ed wonderfully.
That is not the best way, just the simplest that still yields compression in most cases, it is better than nothing.