mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
507 B
25 lines
507 B
#ifndef _AmRingTone_h_
|
|
#define _AmRingTone_h_
|
|
|
|
#include "AmAudio.h"
|
|
|
|
/** \brief audio device that generates ring tones with uesr specified period, f and f2 */
|
|
class AmRingTone: public AmAudio
|
|
{
|
|
int on_period; // ms
|
|
int off_period;// ms
|
|
int freq; // Hz
|
|
int freq2; // Hz
|
|
|
|
int length;
|
|
|
|
public:
|
|
AmRingTone(int length, int on, int off, int f, int f2=0);
|
|
~AmRingTone();
|
|
|
|
int read(unsigned int user_ts, unsigned int size);
|
|
int write(unsigned int user_ts, unsigned int size);
|
|
};
|
|
|
|
#endif
|