[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] Generating tone command
From: |
Simon Morlat |
Subject: |
Re: [Linphone-developers] Generating tone command |
Date: |
Fri, 17 Jul 2009 16:14:51 +0200 |
User-agent: |
KMail/1.11.4 (Linux/2.6.29-2-amd64; KDE/4.2.4; x86_64; ; ) |
Hi,
You can modify mediastreamer2/src/dtmfgen.c, which is a module that generates
dual tones. It is the incoming stream (to play the tones to the speaker), but
you can also set it in the outgoing stream, by modifying within audiostream.c.
Simon
Le vendredi 17 juillet 2009 11:10:25, Salvatore Benedetto a écrit :
> Hi,
>
> I'm trying to implement a tone generator (sinusoid) command in linphone,
> but I'm totally new to the code base and don't know where to start.
>
> Personally I see two way of doing this:
>
> - Use an utility that generatores tone, and call it transparently, so that
> the playTone command, would first call the utility to create the tone in a
> temporary wav file, and then simply call the linphone play function. By the
> way, anyone aware
> of such of light utility?
>
> - Create a function that generate a sound wave (no idea how to do this),
> send the buffer to alaw_enc_process, and send it over.
>
> Any suggestion is highly appreciated.
>
> Regards,
> S.
>
>
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers