摘要: /*http://sdr-reu.wikispaces.com/file/view/SoundIn.cFile to read sound from sound card and record it to a file in PCM format.*/#include <windows.h>#include <mmsystem.h>#include <stdio.h>#include <conio.h>#pragma comment(lib, "winmm.lib")#define IN_BUFFERS_NUMBER 4 // 阅读全文
posted @ 2013-02-22 17:28 天行侠 阅读(4196) 评论(1) 推荐(1)
摘要: #include <windows.h>#include <mmsystem.h>#include <stdio.h>//#pragma comment(lib, "Winmm.lib")int main(int argc, char *argv[]){ //TCHAR fileName[]="D://mp3//Someone Like You.mp3"; //绝对地址形式 TCHAR fileName[]="Someone Like You.mp3"; TCHAR shortName[MAX_PA 阅读全文
posted @ 2013-02-22 17:21 天行侠 阅读(7147) 评论(0) 推荐(0)
摘要: #include <windows.h>#include <mmsystem.h>#include <stdio.h>//#pragma comment(lib, "Winmm.lib")int main(int argc, char *argv[]){PlaySound (TEXT("D:\\sound\\Speech Off.wav"), NULL, SND_FILENAME | SND_NODEFAULT); printf("start..."); return 0;}注意://#pragma 阅读全文
posted @ 2013-02-22 17:17 天行侠 阅读(1913) 评论(0) 推荐(0)