1 #ifndef _AmRingTone_h_ 2 #define _AmRingTone_h_ 3 4 #include "AmAudio.h" 5 6 /** \brief audio device that generates ring tones with uesr specified period, f and f2 */ 7 class AmRingTone: public AmAudio 8 { 9 int on_period; // ms 10 int off_period;// ms 11 int freq; // Hz 12 int freq2; // Hz 13 14 int length; 15 16 public: 17 AmRingTone(int length, int on, int off, int f, int f2=0); 18 ~AmRingTone(); 19 20 int read(unsigned int user_ts, unsigned int size); 21 int write(unsigned int user_ts, unsigned int size); 22 }; 23 24 #endif 25