[Asterisk-Dev] Asterisk Codecs Extension
Alex Volkov
avolkov at bpvn.com
Wed Apr 14 00:20:11 MST 2004
Asterisk Codecs ExtensionPedro,
Simply look at any codec code in asterisk/codecs/. I suggest codec_ulaw.c or codec_alaw.c. The bulk of both of these is the necessary interfacing code to make whatever-generic-codec work with asterisk, and the actual conversions from xlaw to PCM and back are simple 2-liner loops. Once you understand the basic structure of an * codec, look at codec_g723_1.c for an example on how to handle a whatever-generic-codec that is an opaque library.
Model your new * codec on those, as I think those provide the best examples of an adaptation/abstraction layer.
Cheers!
Alex.
----- Original Message -----
From: Pedro Bessa Goncalves
To: Asterisk-Dev at Lists. Digium. Com (asterisk-dev at lists.digium.com)
Sent: Tuesday, April 13, 2004 7:35 AM
Subject: [Asterisk-Dev] Asterisk Codecs Extension
Hi, does anyone know the required function headers for extending Asterisk codecs?
Is there another way to import 3rd party codecs?
Thank you,
Pedro Goncalves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20040414/c4123831/attachment.htm
More information about the asterisk-dev
mailing list