Omnimaga

Calculator Community => TI Calculators => ASM => Topic started by: Hot_Dog on April 29, 2010, 11:17:53 pm

Title: ASM Sound Routine
Post by: Hot_Dog on April 29, 2010, 11:17:53 pm
I'll let the question speak for itself...is there a routine to play sound in ASM programs?
Title: Re: ASM Sound Routine
Post by: DJ Omnimaga on April 29, 2010, 11:35:18 pm
Mhmm I think there aren't any publicly available for the 83+, but Quibigo and Calc84 might be able to help you on this, since they both made games and apps with sound.

Otherwise, I think Anthony Loven had one for the 86. Not sure how easy it would be to port on the 83+, though. His routine must either be on ticalc.org or in the 2005 newsletter that was posted as attachment in the old Omni screenshots thread under Misc section
Title: Re: ASM Sound Routine
Post by: Quigibo on April 29, 2010, 11:40:45 pm
If you just want beeps and bloops to play a melody during a game, the Pyoro source code had a note reader and player that you can use and also kind of has some macros to simplify editing music.

On the other hand, if you want high quality sound or music that doesn't need to be rendered at the same time as the game, try Real Sound.

And on the third hand, if you want some medium quality music to play while the game is going, you'll have to ask calc83 becasue he's the only one I've seen actually pull it off well, or at least I trust he has, I haven't actually used it.  I think it requires 15MHz mode for this option.
Title: Re: ASM Sound Routine
Post by: Hot_Dog on April 29, 2010, 11:47:49 pm
Jusy bleeps and bloops.  Thanks, I'll look at Pyoro!
Title: Re: ASM Sound Routine
Post by: DJ Omnimaga on April 29, 2010, 11:49:22 pm
calc83
Poor Calc84god...er...maniac, you downgraded him and now he can no longer test Project M sound on real hardware :(

I wouldn't be surprised if he could pull off 1 channel sound on 6 MHz tho, even during gameplay, considering ATM he uses 3 or 4 channels
Title: Re: ASM Sound Routine
Post by: calc84maniac on April 29, 2010, 11:54:53 pm
calc83
Poor Calc84god...er...maniac, you downgraded him and now he can no longer test Project M sound on real hardware :(

I wouldn't be surprised if he could pull off 1 channel sound on 6 MHz tho, even during gameplay, considering ATM he uses 3 or 4 channels
Not really, because I need the crystal timers from the SE/84+ models. And since I was using those models anyway, 15MHz was useful. :)
Title: Re: ASM Sound Routine
Post by: DJ Omnimaga on April 29, 2010, 11:59:48 pm
Wouldnt there be a way to make sound not play consistently, though? Like not a long beep, but several millisecond beeps to leave some CPU time for other stuff? IIRC, CalcMOD allowed doing some actions in the middle of a two chan song and it was on a regular 83+. It was just stopping/exiting, but still actions.
Title: Re: ASM Sound Routine
Post by: calc84maniac on April 30, 2010, 12:15:25 am
That would be the Pyoro method, then