dtmf

Generating DTMF tone to send in RTP packet

I have the following code to send as audio RTP packet some DTMF digits: int count=0 for(int j = 0; j < samples; j++) { waves = 0; // dtmf tone 1 waves += sin( ((PI * 2.0f / 8000) * 697.0f) * count ); waves += sin( ((PI * 2.0f / 8000) * 1209.0f) * count); waves *= 8191.0f; //amplitude ++coun...