资源简介
faad windows x86 动态库 。VS工程已存在,方便重新编译和使用

代码片段和文件信息
/*
** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
** Copyright (C) 2003-2004 M. Bakker Ahead Software AG http://www.nero.com
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License or
** (at your option) any later version.
**
** This program 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 General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not write to the Free Software
** Foundation Inc. 59 Temple Place - Suite 330 Boston MA 02111-1307 USA.
**
** Any non-GPL usage of this software or parts of this software is strictly
** forbidden.
**
** Commercial non-GPL licensing of this software is possible.
** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
**
** $Id: audio.cv 1.11 2004/02/06 10:23:27 menno Exp $
**/
#ifdef _WIN32
#include
#endif
#include
#include
#include
#include
#include
#include “audio.h“
audio_file *open_audio_file(char *infile int samplerate int channels
int outputFormat int fileType long channelMask)
{
audio_file *aufile = malloc(sizeof(audio_file));
aufile->outputFormat = outputFormat;
aufile->samplerate = samplerate;
aufile->channels = channels;
aufile->total_samples = 0;
aufile->fileType = fileType;
aufile->channelMask = channelMask;
switch (outputFormat)
{
case FAAD_FMT_16BIT:
aufile->bits_per_sample = 16;
break;
case FAAD_FMT_24BIT:
aufile->bits_per_sample = 24;
break;
case FAAD_FMT_32BIT:
case FAAD_FMT_FLOAT:
aufile->bits_per_sample = 32;
break;
default:
if (aufile) free(aufile);
return NULL;
}
if(infile[0] == ‘-‘)
{
#ifdef _WIN32
setmode(fileno(stdout) O_BINARY);
#endif
aufile->sndfile = stdout;
} else {
aufile->sndfile = fopen(infile “wb“);
}
if (aufile->sndfile == NULL)
{
if (aufile) free(aufile);
return NULL;
}
if (aufile->fileType == OUTPUT_WAV)
{
if (aufile->channelMask)
write_wav_extensible_header(aufile aufile->channelMask);
else
write_wav_header(aufile);
}
return aufile;
}
int write_audio_file(audio_file *aufile void *sample_buffer int samples int offset)
{
char *buf = (char *)sample_buffer;
switch (aufile->outputFormat)
{
case FAAD_FMT_16BIT:
return write_audio_16bit(aufile buf + offset*2 samples);
case
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-02-01 09:20 faad2-2.7\
文件 328 2004-04-12 10:17 faad2-2.7\AUTHORS
文件 18622 2003-07-29 00:20 faad2-2.7\COPYING
文件 308 2009-02-02 15:37 faad2-2.7\ChangeLog
文件 180 2004-07-27 00:52 faad2-2.7\Makefile.am
文件 106 2004-02-06 04:47 faad2-2.7\NEWS
文件 3171 2007-11-01 04:33 faad2-2.7\README
文件 450 2009-02-02 15:37 faad2-2.7\README.linux
文件 17 2004-02-06 02:23 faad2-2.7\TODO
目录 0 2018-02-01 09:20 faad2-2.7\aacDECdrop\
文件 7869 2007-08-22 10:31 faad2-2.7\aacDECdrop\sc
目录 0 2018-02-01 09:20 faad2-2.7\aacDECdrop\aacDECdrop\
文件 1897 2007-08-22 10:31 faad2-2.7\aacDECdrop\aacDECdrop\aacDECdrop.sln
文件 7368 2007-08-22 10:31 faad2-2.7\aacDECdrop\aacDECdrop\aacDECdrop.vcproj
文件 15389 2004-02-06 02:23 faad2-2.7\aacDECdrop\audio.c
文件 2591 2004-02-06 02:23 faad2-2.7\aacDECdrop\audio.h
文件 15393 2004-04-03 11:08 faad2-2.7\aacDECdrop\decode.c
文件 990 2002-08-13 11:16 faad2-2.7\aacDECdrop\decode.h
文件 3469 2002-08-13 11:16 faad2-2.7\aacDECdrop\decthread.c
文件 581 2002-03-16 11:18 faad2-2.7\aacDECdrop\decthread.h
文件 20774 2004-04-03 11:08 faad2-2.7\aacDECdrop\main.c
文件 2364 2002-04-14 08:31 faad2-2.7\aacDECdrop\misc.c
文件 579 2002-04-14 08:31 faad2-2.7\aacDECdrop\misc.h
目录 0 2018-02-01 09:20 faad2-2.7\aacDECdrop\resource\
文件 2134 2002-03-16 11:18 faad2-2.7\aacDECdrop\resource\AAC01.bmp
文件 2238 2002-03-16 11:18 faad2-2.7\aacDECdrop\resource\AAC01.ico
文件 2134 2002-03-16 11:18 faad2-2.7\aacDECdrop\resource\AAC02.bmp
文件 2134 2002-03-16 11:18 faad2-2.7\aacDECdrop\resource\AAC03.bmp
文件 2134 2002-03-16 11:18 faad2-2.7\aacDECdrop\resource\AAC04.bmp
文件 2134 2002-03-16 11:18 faad2-2.7\aacDECdrop\resource\AAC05.bmp
文件 2134 2002-03-16 11:18 faad2-2.7\aacDECdrop\resource\AAC06.bmp
............此处省略423个文件信息
相关资源
- AE开发Windows最短路径分析
-
Windows em
bedded Compact 2013 应用开发调 - 黑苹果硬件兼容检测和查询软件
- Uninstall_Cortana_WINCLIENT.CN.rar
- VMware65_SLP_DeLLSLIC2.1
- Windows异步套接字网络编程
- WINDOWS98启动盘镜像Win98.IMA
- 仿windows记事本
- windows7用的,非常漂亮的透明计时器
- 80X86汇编语言基础教程(光盘内容)
- windows下制作macOS安装U盘,绝对简单好
- keil vcom windows 7 64bit 驱动
- windows ce 系统的GPIO驱动程序
- TCP 发包工具(windows)
- 微软的可以删除系统卸不干净的软件
- windows下生成MD5值的工具(WinMD5)
- windows cygwin ns2安装步骤
- WinAPI 函数库(大全)
- 解决在Windows XP SP2下不能显示验证码的
- lz4压缩解压工具x64和x86
- 加快Windows XP操作系统开机速度
- CentOS-6.7-x86_64-bin-DVD1to2
- Windows 1.0 软盘镜像
- Windows下访问LINUX的利器-SSH
- libaio-0.3.107-10.el6.x86_64.rpm
- ChilledWindows.exe(玩笑病毒)
- NDK-R12B windows-x86_64百度云盘
- windows3.2简体中文版,虚拟机文件
- Windows 3.0 安装软盘(3.5 720k)
- WINDOWS内核安全编程 寒江独钓 光盘源
评论
共有 条评论