資源簡介
實現g711a音頻文件轉換成aac文件的控件
編譯成exe可執行文件
傳入兩個參數,第一個為g711a格式的源文件,第二個為目標文件
readme
========================================================================
控制臺應用程序:Convert2ACC 項目概述
========================================================================
應用程序向導已為您創建了此 Convert2ACC 應用程序。
本文件概要介紹組成 Convert2ACC 應用程序的每個文件的內容。
Convert2ACC.vcxproj
這是使用應用程序向導生成的 VC 項目的主項目文件,其中包含生成該文件的 Visual C 的版本信息,以及有關使用應用程序向導選擇的平臺、配置和項目功能的信息。
Convert2ACC.vcxproj.filters
這是使用“應用程序向導”生成的 VC 項目篩選器文件。它包含有關項目文件與篩選器之間的關聯信息。在 IDE 中,通過這種關聯,在特定節點下以分組形式顯示具有相似擴展名的文件。例如,“.cpp”文件與“源文件”篩選器關聯。
Convert2ACC.cpp
這是主應用程序源文件。
/////////////////////////////////////////////////////////////////////////////
其他標準文件:
StdAfx.h, StdAfx.cpp
這些文件用于生成名為 Convert2ACC.pch 的預編譯頭 (PCH) 文件和名為 StdAfx.obj 的預編譯類型文件。
/////////////////////////////////////////////////////////////////////////////
其他注釋:
應用程序向導使用“TODO:”注釋來指示應添加或自定義的源代碼部分。
/////////////////////////////////////////////////////////////////////////////
代碼片段和文件信息
//?Convert2ACC.cpp?:?定義控制臺應用程序的入口點。
//
#include?“stdafx.h“
#include?
#include?“../EasyAACEncoderAPI.h“
#include?
#include?
#include?“comutil.h“??
#pragma?comment(lib?“comsuppw.lib“)??
#pragma?comment(lib“comsuppwd.lib“)??
int?main(int?argc?char*?argv[])
//int?_tmain(int?argc?_TCHAR*?argv[])
{
if?(argc?3)
return?-3;
InitParam?initParam;
initParam.u32AudioSamplerate?=?8000;
initParam.ucAudioChannel?=?1;
initParam.u32PCMBitSize?=?16;
initParam.ucAudioCodec?=?Law_ALaw;
EasyAACEncoder_Handle?handle?=?Easy_AACEncoder_Init(initParam);
char*?infilename?=?argv[1];??//標準
char*?outAacname?=?argv[2];
FILE*?fpIn;
if?(0?!=?fopen_s(&fpIn?infilename?“rb“))
{
//printf(“%s:[%d]?open?%s?file?failed\n“?__FUNCTION__?__LINE__?infilename);
return?-1;
}
FILE*?fpOut;
if?(0?!=?fopen_s(&fpOut?outAacname?“wb“))
{
//printf(“%s:[%d]?open?%s?file?failed\n“?__FUNCTION__?__LINE__?outAacname);
return?-1
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1734??2017-05-04?17:18??Convert2ACC\Convert2ACC.cpp
?????文件???????4728??2017-05-04?17:14??Convert2ACC\Convert2ACC.vcxproj
?????文件???????1318??2017-05-04?16:12??Convert2ACC\Convert2ACC.vcxproj.filters
?????文件????????633??2017-05-04?18:08??Convert2ACC\Convert2ACC.vcxproj.user
?????文件???????1538??2017-05-04?16:12??Convert2ACC\ReadMe.txt
?????文件????????217??2017-05-04?16:12??Convert2ACC\stdafx.cpp
?????文件????????234??2017-05-04?16:12??Convert2ACC\stdafx.h
?????文件????????236??2017-05-04?16:12??Convert2ACC\targetver.h
?????目錄??????????0??2017-11-02?15:31??Convert2ACC
-----------?---------??----------?-----??----
????????????????10638????????????????????9
評論
共有 條評論