You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
760 B
28 lines
760 B
#ifndef _PLAYPCM_H_
|
|
#define _PLAYPCM_H_
|
|
|
|
#include <stdio.h>
|
|
#include <windows.h>
|
|
#include <MMSystem.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#pragma comment(lib, "winmm.lib")
|
|
#pragma warning(disable:4996)
|
|
|
|
BOOL getOutNumDrive(); //判断是否有输出设备
|
|
BOOL getOutDevCaps(); //判断时候能够获取设备描述
|
|
//BOOL openOutFile(const TCHAR *cFileName, FILE **fp); //打开文件
|
|
BOOL initOutDrive(const TCHAR *cFileName); //初始化设备
|
|
BOOL openOutPcm(LPHWAVEOUT, LPCWAVEFORMATEX, DWORD_PTR); //打开相应的设备
|
|
LPSTR loadOutAudioBlock(const TCHAR* filename, DWORD* blockSize); //加载相应的文件信息
|
|
BOOL writeOutAudioBlock(HWAVEOUT hWaveOut, LPSTR block, DWORD size); //写声音文件到设备
|
|
BOOL closeOutAudioBlock(HWAVEOUT phwo); //关闭设备
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|