资源简介
mp3出名的编码库lame,可将音频数据封装成mp3格式
代码片段和文件信息
/**
*
* Lame ACM wrapper encode/decode MP3 based RIFF/AVI files in MS Windows
*
* Copyright (c) 2002 Steve Lhomme
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not write to the Free Software
* Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*
*/
/*!
\author Steve Lhomme
\version \$Id: ACM.cppv 1.20 2007/05/17 22:25:40 robert Exp $
*/
#if !defined(STRICT)
#define STRICT
#endif // STRICT
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include “adebug.h“
#include “resource.h“
#include “ACMStream.h“
#ifdef ENABLE_DECODING
#include “DecodeStream.h“
#endif // ENABLE_DECODING
#include “ACM.h“
#ifndef IDC_HAND
#define IDC_HAND MAKEINTRESOURCE(32649)
#endif // IDC_HAND
char ACM::VersionString[120];
const char ACM_VERSION[] = “0.9.2“;
#ifdef WIN32
//
// 32-bit versions
//
#if (WINVER >= 0x0400)
#define VERSION_ACM_DRIVER MAKE_ACM_VERSION(4 0 0)
#else
#define VERSION_ACM_DRIVER MAKE_ACM_VERSION(3 51 0)
#endif
#define VERSION_MSACM MAKE_ACM_VERSION(3 50 0)
#else
//
// 16-bit versions
//
#define VERSION_ACM_DRIVER MAKE_ACM_VERSION(1 0 0)
#define VERSION_MSACM MAKE_ACM_VERSION(2 1 0)
#endif
#define PERSONAL_FORMAT WAVE_FORMAT_MPEGlayer3
#define SIZE_FORMAT_STRUCT sizeof(MPEGlayer3WAVEFORMAT)
//#define SIZE_FORMAT_STRUCT 0
//static const char channel_mode[][13] = {“mono““stereo““joint stereo““dual channel“};
static const char channel_mode[][13] = {“mono““stereo“};
static const unsigned int mpeg1_freq[] = {480004410032000};
static const unsigned int mpeg2_freq[] = {24000220501600012000110258000};
static const unsigned int mpeg1_bitrate[] = {320 256 224 192 160 128 112 96 80 64 56 48 40 32};
static const unsigned int mpeg2_bitrate[] = {160 144 128 112 96 80 64 56 48 40 32 24 16 8};
#define SIZE_CHANNEL_MODE (sizeof(channel_mode) / (sizeof(char) * 13))
#define SIZE_FREQ_MPEG1 (sizeof(mpeg1_freq) / sizeof(unsigned int))
#define SIZE_FREQ_MPEG2 (sizeof(mpeg2_freq) / sizeof(unsigned int))
#define SIZE_BITRATE_MPEG1 (sizeof(mpeg1_bitrate) / sizeof(unsigned int))
#define SIZE_BITRATE_MPEG2 (sizeof(mpeg2_bitrate) / sizeof(unsigned int))
static const int FORMAT_TAG_MAX_NB = 2; // PCM and PERSONAL (mandator
相关资源
- Scratch源码
- E4A无障碍跨程序操作类库(带源码、
- 设备管理系统源码
- 安卓wifi直连app源码
- 我的世界源码(易语言版)
- labview编程软件滤波器以及编写程序设
- 我的界面(visual foxpro)源码
- 易语言:一键cf基址源码
- The Secret Path 3D 3D魔方迷宫[源码][scra
- scratch垃圾分类源码(最终版本).sb
- 安卓QQ6.71协议源码易语言,qq协议源码
- 编译原理实验工具及参考源码(lex&
- E盾偷后台工具源码
- UNIX/LINUX编程实践教程的源码
- 十以内加减法练习 powerbuilder源码
- 农场开发项目
- OCR源码
- PLC上位机编程软件
- 用foobar2000听google音乐[更新一下]
- 学生信息管理系统源码
- mp3解析文档及其分析工具
- 用VC 编写的仿QQ聊天室程序源代码
- 毕业论文之温度传感器DS18B20(源码
- 可自定义导航网站源码
- 栅栏填充算法源码(VC)
- msp430F149操作红外接收模块源码
- [免费]图像识别c 源码
- 周易排盘源码
- RSA算法源码
- 一个人脸识别程序源码
评论
共有 条评论