25TelephoneTone::getCountryId(
const std::string&
countryName)
47 , currentTone_(
Tone::ToneId::TONE_NULL)
49 buildTones(sampleRate, sampleFormat);
64 buildTones(sampleRate, sampleFormat);
73 return tones_[(
size_t) currentTone_];
77TelephoneTone::buildTones(
unsigned int sampleRate,
AVSampleFormat sampleFormat)
84 "440+480/2000,0/4000",
98 "413+438/400,0/200,413+438/400,0/2000",
99 "425/375,0/375,420/375,8/375",
105 "400+450/400,0/200,400+450/400,0/2000",
106 "400/400,0/350,400/225,0/525",
113 "425/200,0/200,425/200,0/200,425/200,0/600",
117 "425/600,0/1000,425/200,0/200",
126 "400+15/1000,0/2000",
void setCurrentTone(Tone::ToneId toneId)
std::shared_ptr< Tone > getCurrentTone()
void setSampleRate(unsigned int sampleRate, AVSampleFormat sampleFormat)
TelephoneTone(const std::string &countryName, unsigned int sampleRate, AVSampleFormat sampleFormat)
ToneId
The different kind of tones.
void emitSignal(Args... args)