windows 绘图基础
https://www.cnblogs.com/mr-wid/archive/2012/11/07/2758726.html

在窗口绘图api
https://zhidao.baidu.com/question/144679457.html

windows刷新
https://blog.csdn.net/u011555996/article/details/78923208

多线程
https://www.cnblogs.com/zhaoxinshanwei/p/3885541.html

录音/音频播放

//  设置位深:
mciSendString ("set wave bitpersample 8", "", 0, 0);
//  设置采样率:
mciSendString ("set wave samplespersec 16000", "", 0, 0);
//  设置声道数:
mciSendString ("set wave channels 1", "", 0, 0);
//  设置WAVEPCM:
mciSendString ("set wave format tag pcm","", 0, 0);
//  打开设备:
mciSendString ("open new type WAVEAudio alias WREC",0&,0,0); // 我见很多人写alias movie,这里就是alias个代号
//  开始录音:
mciSendString ("record WREC",0&,0,0);
//  停止录音:
mciSendString ("stop WREC",0&,0,0);
//  保存录音
mciSendString ("save WREC C:\\test.wav",0&,0,0); // 绝对路径
//  关闭设备:
mciSendString ("close WREC",0&,0,0);
// 打开音乐
    mciSendString("open background.mp3 alias mymusic", NULL, 0, NULL);

    outtextxy(0, 0, "按任意键开始播放");
    getch();

    // 播放音乐
    mciSendString("play mymusic", NULL, 0, NULL);

    outtextxy(0, 0, "按任意键停止播放");
    getch();

    // 停止播放并关闭音乐
    mciSendString("stop mymusic", NULL, 0, NULL);
    mciSendString("close mymusic", NULL, 0, NULL);

发表评论

邮箱地址不会被公开。 必填项已用*标注