• 大小: 132KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: 其他
  • 标签: wavpcm  

资源简介

文章路径http://blog.csdn.net/chenluliang/article/details/74943130

资源截图

代码片段和文件信息

///////////////////////////////////////////////////////////////////////////////
//
// Aumpel -- Primary interface to aumplib
//
// This class abstracts the other participant classes so that a single
// set of methods can be used to convert one sound file type to another.
//
// NOTE: Usage of the overload of the Convert() method in this class that 
// matches the parameters
// 
//  Convert(
//  string inputFile 
//  string outputFile 
//  soundFormat convertTo 
//  MadlldlibWrapper.Callback updateStatus
//  )
//
// may infringe rights of the GPL license that is required on the 
// MadlldlibWrapper class if used in a closed source project. See the readme.txt
// file in this distribution for details.
//
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2004 J. A. Robson http://www.arbingersys.com
// 
// 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
//
///////////////////////////////////////////////////////////////////////////////




namespace Arbingersys.Audio.Aumplib 
{


using System;
using System.IO;
using System.Text;
using System.Runtime.InteropServices;

// alias; see SF_INFO struct:

using sf_count_t = System.Int64;


#if PLATFORM_64
using size_t = System.UInt64;
#else
using size_t = System.UInt32;
#endif


class Aumpel
{


// Convert to short pathnames
// (madlldlib)

[DllImport(“kernel32.dll“ SetLastError=true CharSet=CharSet.Auto)]
[return:MarshalAs(UnmanagedType.U4)]
public static extern int 
GetShortPathName(
[MarshalAs(UnmanagedType.LPTStr)] 
string inputFilePath
[MarshalAs(UnmanagedType.LPTStr)] 
StringBuilder outputFilePath
[MarshalAs(UnmanagedType.U4)] 
int bufferSize);



// Delegate for callback 

public delegate void 
Reporter(int totalBytes int processedBytes Aumpel aumpelObj);


// Flags for conversion hence

// soundFormat values are taken mostly
// from libsndfile‘s definition 
// since it handles the bulk of the
// transformation types (although it
// possibly will receive the slightest 
// use not having MP3 capabilities). I 
// have added a value representing MP3 
// for use with aumplib.

public enu

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-07-06 16:09  WindowsFormsApplication2\
     目录           0  2017-07-06 16:09  WindowsFormsApplication2\.vs\
     目录           0  2017-07-06 16:09  WindowsFormsApplication2\.vs\WindowsFormsApplication2\
     目录           0  2017-07-06 16:09  WindowsFormsApplication2\.vs\WindowsFormsApplication2\v14\
     文件       18432  2017-07-11 11:23  WindowsFormsApplication2\.vs\WindowsFormsApplication2\v14\.suo
     目录           0  2017-07-11 11:54  WindowsFormsApplication2\WindowsFormsApplication2\
     文件        1039  2017-07-06 16:09  WindowsFormsApplication2\WindowsFormsApplication2.sln
     文件         189  2017-07-06 16:08  WindowsFormsApplication2\WindowsFormsApplication2\App.config
     文件       16310  2017-07-06 16:10  WindowsFormsApplication2\WindowsFormsApplication2\Aumpel.cs
     目录           0  2017-07-06 16:10  WindowsFormsApplication2\WindowsFormsApplication2\bin\
     目录           0  2017-07-11 11:23  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\
     文件       37888  2017-07-11 11:45  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe
     文件         189  2017-07-06 16:08  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.exe.config
     文件       65024  2017-07-11 11:45  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.pdb
     文件       22696  2017-07-11 11:46  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe
     文件         189  2017-07-06 16:08  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe.config
     文件         490  2016-07-16 19:44  WindowsFormsApplication2\WindowsFormsApplication2\bin\Debug\WindowsFormsApplication2.vshost.exe.manifest
     目录           0  2017-07-06 16:10  WindowsFormsApplication2\WindowsFormsApplication2\bin\Release\
     文件         405  2017-07-06 16:09  WindowsFormsApplication2\WindowsFormsApplication2\Form1.cs
     文件        1180  2017-07-06 16:09  WindowsFormsApplication2\WindowsFormsApplication2\Form1.Designer.cs
     文件       13928  2017-07-11 11:54  WindowsFormsApplication2\WindowsFormsApplication2\Form2.cs
     文件        9898  2017-07-11 11:50  WindowsFormsApplication2\WindowsFormsApplication2\Form2.Designer.cs
     文件        6224  2017-07-11 11:50  WindowsFormsApplication2\WindowsFormsApplication2\Form2.resx
     文件       13405  2017-07-06 16:12  WindowsFormsApplication2\WindowsFormsApplication2\LameWrapper.cs
     文件        5408  2017-07-06 16:12  WindowsFormsApplication2\WindowsFormsApplication2\LameWriter.cs
     文件       14698  2017-07-06 16:12  WindowsFormsApplication2\WindowsFormsApplication2\LibsndfileWrapper.cs
     文件        4392  2017-07-06 16:10  WindowsFormsApplication2\WindowsFormsApplication2\MadlldlibWrapper.cs
     文件        9199  2017-07-06 16:13  WindowsFormsApplication2\WindowsFormsApplication2\MadnpsrvWrapper.cs
     文件        9480  2017-07-06 16:12  WindowsFormsApplication2\WindowsFormsApplication2\MP3Check.cs
     目录           0  2017-07-06 16:08  WindowsFormsApplication2\WindowsFormsApplication2\obj\
     目录           0  2017-07-11 11:41  WindowsFormsApplication2\WindowsFormsApplication2\obj\Debug\
............此处省略21个文件信息

评论

共有 条评论

相关资源