ToneDef R3

For a while now I’ve been pretty dissatisfied with how ToneDef works.  I created a bank of just under 40 .ogg sounds corresponding to the DTMF, BlueBox, and various coin tones the program can make.  Doing it this way is easier, sure, but it feels wrong.  And the way I had it implemented meant every touch of the keypad would be for a fixed duration, instead of playing continuously while you press, like a real keypad.

Since I’d never worked with raw PCM audio before, I wasn’t really prepared to convert the app over to dynamically-generated audio.  That is, until last night.  I got it mostly figured out, and went about removing every audio file in the application, completely replaced with shiny new dual-tone software audio generators.  Quite happy with how it turned out.  As a result, the program is down from almost 400k to just over 100k.  And now, not only can you hold down the touch tone buttons until your ears bleed, but you can control the duration of the tones (not just the spaces between them) from the preferences page.

So, let me know how R3 works for you.  I’m a bit concerned I might have broken the app for some users, so make sure you let me know if it’s not working for you.  This was new territory for me.  I expect tears!

[Download]

Oh, I almost forgot.  It’s very irritating for me not to be able to respond to the problems brought up by users in the app reviews on the Marketplace, so I’ll leave it here and hope it’s seen:

Sparkit! Sorry about ToneDef being the cause of your problem with your project, the changes I made in R3 might help you out a bit since I rewrote a good chunk of that code with a better implementation.  Contact me if it doesn’t help.