:idea:
I have had a quick look at your code (in another thread), as you are only using a cheap 8ohm speaker job, why not resample the audio to a lower bitrate?
Can you not get the pic to generate this alarm sound (or V.similar) as an alternative?
I know I you are going against the "established" way of doing things, and I applaude you for this, don't give up on it..... Yes it's "easier" to do this other ways, but then it's "easier" to go and buy an alarm buzzer for £2.50ish from Maplin (<UK electonics shop).
You will learn alot more by attempting this than giving up, you may fail, but at least you will understand why.
I feel some backlash coming on :wink: .........
Another thing to look at in your code...... if you look at the data, a lot of the numbers are very similar, if you change tactic slightly..... instead of reloading portb every sample, why not "add" or "subtract" a value from it..... the reason?? Well look at the values, you can (almost!!) add or subtract not more than 16 from each value to achive the next "sample" this means you can store 2 "samples" in each lookup element, this will halve you lookup size.......
Another "poormans" DAC can be made, with a saving on code space by shifting the data out of 1 pin, to a resistor/cap network, the more "1's" the voltage rises the more "0's" the voltage drops....... just food for thought really!!! :wink: Go for it!! :lol:
I hope I have "re-inspired" you, good luck, let us know how you get on!