资源简介
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个文件信息
相关资源
- CIS_Microsoft_Windows_Server_2016_RTM_Release
- WindowsXP-KB952155-RDP6.1
- Windows95 System Programming Secrets真中文版
- torchvision-0.5.0+cpu-cp36-cp36m-linux_x86_64.
- Windows批处理高级教程精选合编.pdf
- Windows平板电脑 Intel平台 z3735 z8300 CP
- windows MSVCP100
- BusHound v6 32位 64位 正式版
- 也许是世界上最快的iOS12 +代码签名替
- DiskGenius绿色版一款磁盘分区及数据恢
- OpenGL三维图形程序设计(Windows版)
- Windows Graphics Programming Win32 GDI and Dir
- Windows网络编程(第二版)
- windows server 2003-各种常见服务搭建
- OpenCV2.4.3 windows版本
- qt5-qtwebkit-5.6.2-1.el7.x86_64.rpm
- Qt5 for windows plugin dll
- WinCryto API 签名 验证
- 802.1x WINDOWS 客户端
- Quartz.NET定时任务,可直接生成Window
- kiwi Syslog 8.3.7 破解版
- Essential Windows Communication Foundation (
- tomcat7的windows版
- windows 蓝牙通讯sdk 及开发文档
- wine.deb Linux下的windows兼容工具
- apache-tomcat-9.0.0.M4-windows-x64.zip
- tomcat6 windows64位
- 最新版apache-tomcat-8.0.26-windows-x64
- apache-tomcat-9.0.0.M9-windows-x64
- Primer Premier 5.0绿色版,支持64位Windo
评论
共有 条评论