Hallo Gabriel,
o Gabriel [05/22/08 17:48]:
> Hi,
>
> my question is about the function I can use to record an announce with.
> Do I do it with
>
> AmAudioFile a_msg;
> ...
> new AmPlaylistItem(NULL,new_announce)
>
> ?
if you set your audio file as input, then the audio that is received
will be written to that file:
AmAudioFile MyDlg::a_msg;
...
a_msg.open("/tmp/record.wav", AmAudio::Write);
setInput(&a_msg);
if you are using a playlist, and have it connected to input and output
like this:
AmAudioFile MyDlg::playlist;
AmAudioFile MyDlg::a_msg;
...
setInOut(&playlist, &playlist);
then it will record if you put a playlist item in the playlist, which
has the file on the recording position
a_msg.open("/tmp/record.wav", AmAudio::Write);
playlist.addToPlaylist(new AmPlaylistItem(NULL, &a_msg));
PlaylistItem has two AmAudio (e.g. AmAudioFile) - one as play, and one
as record position. If one of them is finished (i.e. read returns 0),
then the playlist continues to the next item.
hth
Stefan
>
> I don't think so but I can"t find another function which looks like
> being used for recording...
>
> --
> Gabriel
>
> _______________________________________________
> Semsdev mailing list
> [email protected]
> http://lists.iptel.org/mailman/listinfo/semsdev
--
Stefan Sayer
VoIP Services
[EMAIL PROTECTED]
www.iptego.com
iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany
Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev