• 大小: 1.89M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 音频  

资源简介

Naudio 音频处理类 实例源码下载

资源截图

代码片段和文件信息

import zipfile
import os
import sys

outfile = “BuildArtefacts\\NAudio-Demo-Apps.zip“
if len(sys.argv) > 1:
    outfile = sys.argv[1]
print “creating “ + outfile

folders = [‘AudioFileInspector‘‘NAudioDemo‘‘NAudioWpfDemo‘]
files = {}

def exclude(filename):
    return filename.endswith(‘.pdb‘) or (‘.vshost.‘ in filename)

for folder in folders:
    fullpath = folder + “\\bin\\debug\\“
    for filename in os.listdir(fullpath):
        if not exclude(filename):
            files[filename] = fullpath + filename

zip = zipfile.ZipFile(outfile “w“)

for filename fullpath in files.iteritems():
    if os.path.isdir(fullpath):
        #print fullpath + “ is a folder“
        for subfile in os.listdir(fullpath):
            zip.write(fullpath + “\\“ + subfile filenam

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         162  2014-07-18 08:33  naudio_6944784d7ba0\.hg_archival.txt
     文件         579  2014-07-18 08:33  naudio_6944784d7ba0\..svnbridge\.svnbridge
     文件      626176  2014-07-18 08:33  naudio_6944784d7ba0\.build\MSBuild.Community.Tasks.dll
     文件       12062  2014-07-18 08:33  naudio_6944784d7ba0\.build\MSBuild.Community.Tasks.targets
     文件         174  2014-07-18 08:33  naudio_6944784d7ba0\.hgignore
     文件         120  2014-07-18 08:33  naudio_6944784d7ba0\.hgtags
     文件        6765  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\AboutForm.Designer.cs
     文件        2080  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\AboutForm.cs
     文件        5814  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\AboutForm.resx
     文件        7687  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\AudioFileInspector.csproj
     文件       10896  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\AudioFileInspectorForm.Designer.cs
     文件        7697  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\AudioFileInspectorForm.cs
     文件        6012  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\AudioFileInspectorForm.resx
     文件       17922  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\FileAssociations.cs
     文件         763  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\FileInspectors\CakewalkMapInspector.cs
     文件        2809  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\FileInspectors\MidiFileInspector.cs
     文件        2285  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\FileInspectors\Mp3FileInspector.cs
     文件        1778  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\FileInspectors\SoundFontInspector.cs
     文件        7182  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\FileInspectors\WaveFileInspector.cs
     文件        3495  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\FindForm.Designer.cs
     文件         765  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\FindForm.cs
     文件        5814  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\FindForm.resx
     文件         291  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\IAudioFileInspector.cs
     文件        4854  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\Installscript.nsi
     文件        4081  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\OptionsForm.Designer.cs
     文件        2916  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\OptionsForm.cs
     文件        5814  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\OptionsForm.resx
     文件        2320  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\Program.cs
     文件        2470  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\Properties\AssemblyInfo.cs
     文件        2860  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\Properties\Resources.Designer.cs
     文件        5612  2014-07-18 08:33  naudio_6944784d7ba0\AudioFileInspector\Properties\Resources.resx
............此处省略816个文件信息

评论

共有 条评论