• 大小: 2.2MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-11
  • 语言: 其他
  • 标签: vs  window  音频开发  

资源简介

原文博客地址 http://blog.csdn.net/zz603976046/article/details/71480722 用于采集window多声卡采集基础代码

资源截图

代码片段和文件信息

// GetLocalSound.cpp : 定义 DLL 应用程序的导出函数。
//


#include “GetLocalSound.h“



void WaveInitFormat(LPWAVEFORMATEX m_WaveFormat WORD nCh DWORD nSampleRate WORD BitsPerSample)
{
    m_WaveFormat->wFormatTag = WAVE_FORMAT_PCM;
    m_WaveFormat->nChannels = nCh;
    m_WaveFormat->nSamplesPerSec = nSampleRate;
    m_WaveFormat->nAvgBytesPerSec = nSampleRate * nCh * BitsPerSample / 8;
    m_WaveFormat->nBlockAlign = m_WaveFormat->nChannels * BitsPerSample / 8;
    m_WaveFormat->wBitsPerSample = BitsPerSample;
    m_WaveFormat->cbSize = 0;
}



//获取本地电脑声卡通道设备数量
int GetWavNumDevs(void)
{
    int count = waveInGetNumDevs();
    printf(“\n音频输入数量:%d\n“ count);
    return count;
}


//获取所有通道对应的DevID
void GetDevCaps(pDevChID pGetId)
{
    int nDevID = 0;
    int i = 0

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.    121344  2017-07-27 13:59  GetLocalSound\.vs\GetLocalSound\v14\.suo

     文件       1309  2017-07-27 09:47  GetLocalSound\GetLocalSound.sln

     文件    3407872  2017-07-27 10:28  GetLocalSound\ipch\TESTSOUND-c2137e96\TESTSOUND-679901b5.ipch

     文件      49664  2017-07-27 13:59  GetLocalSound\out\TestSound.exe

     文件     400340  2017-07-27 13:59  GetLocalSound\out\TestSound.ilk

     文件     774144  2017-07-27 13:59  GetLocalSound\out\TestSound.pdb

     文件        833  2017-05-12 17:47  GetLocalSound\pro\dll.SearchResults

     文件      12777  2017-07-27 13:59  GetLocalSound\pro\dll.WK3

     文件      30917  2017-07-27 13:59  GetLocalSound\TestSound\Debug\GetLocalSound.obj

     文件      29485  2017-07-27 13:59  GetLocalSound\TestSound\Debug\main.obj

     文件      11993  2017-07-27 13:59  GetLocalSound\TestSound\Debug\stdafx.obj

     文件       1163  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.Build.CppClean.log

     文件        529  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.log

     文件    3407872  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.pch

     文件       3012  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.tlog\CL.command.1.tlog

     文件      69998  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.tlog\CL.read.1.tlog

     文件       2462  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.tlog\CL.write.1.tlog

     文件       1782  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.tlog\link.command.1.tlog

     文件       4008  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.tlog\link.read.1.tlog

     文件        878  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.tlog\link.write.1.tlog

     文件        204  2017-07-27 13:59  GetLocalSound\TestSound\Debug\TestSound.tlog\TestSound.lastbuildstate

     文件     756736  2017-07-27 13:59  GetLocalSound\TestSound\Debug\vc140.idb

     文件     241664  2017-07-27 13:59  GetLocalSound\TestSound\Debug\vc140.pdb

     文件      37478  2017-07-27 13:59  GetLocalSound\TestSound\Debug\winrec.obj

     文件       2670  2017-07-27 11:02  GetLocalSound\TestSound\GetLocalSound.cpp

     文件       1109  2017-07-27 10:26  GetLocalSound\TestSound\GetLocalSound.h

     文件       2123  2017-07-27 11:05  GetLocalSound\TestSound\main.cpp

     文件       1524  2017-05-10 16:23  GetLocalSound\TestSound\ReadMe.txt

     文件        213  2017-05-10 16:23  GetLocalSound\TestSound\stdafx.cpp

     文件        242  2017-07-27 10:30  GetLocalSound\TestSound\stdafx.h

............此处省略31个文件信息

评论

共有 条评论