-
-
05 Sep 2009 22:01:29 UTC
- Distribution: Audio-GSM
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (12 / 0 / 51)
- Kwalitee
Bus factor: 0- License: unknown
- Activity
24 month- Tools
- Download (49.46KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Alexander Frolov
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Audio::GSM - Perl extension for libgsm
SYNOPSIS
use Audio::GSM; $gsm = new Audio::GSM; $wav49 = $gsm->option(GSM_OPT_WAV49); $gsm->option(GSM_OPT_WAV49, $wav49); $gsmData = $gsm->encode($pcmData); $pcmData = $gsm->decode($gsmData);
DESCRIPTION
Audio::GSM is an OO wrapper for libgsm.
Methods
$gsm->option(OPTION, [EXPR])
Sets the OPTION and returns its previous value if EXPR is present, returns its current value otherwise. See gsm_option(3).
$gsm->encode(PCMDATA)
Encodes raw PCM data and returns GSM frame. PCMDATA is 320 bytes length portion of 16-bit mono PCM data.
Return value is 32 or 33 bytes length GSM frame. Short (32 bytes) frames are null-padded. See gsm(3).
$gsm->decode(GSMDATA)
Decodes GSM frame and returns PCM data. GSMDATA is 33 bytes length GSM frame.
Return value is 320 bytes length portion of 16-bit mono PCM data.
Exported constants
GSM_MAGIC GSM_MAJOR GSM_MINOR GSM_OPT_FAST GSM_OPT_FRAME_CHAIN GSM_OPT_FRAME_INDEX GSM_OPT_LTP_CUT GSM_OPT_VERBOSE GSM_OPT_WAV49 GSM_PATCHLEVEL
SEE ALSO
gsm(3), gsm_option(3)
AUTHOR
Alexander Frolov, <froller@froller.net>
Module Install Instructions
To install Audio::GSM, copy and paste the appropriate command in to your terminal.
cpanm Audio::GSM
perl -MCPAN -e shell install Audio::GSM
For more information on module installation, please visit the detailed CPAN module installation guide.