2017年12月21日 星期四

[耍廢]WEEK11

播放MP3音樂檔
------記得將音樂放到執行檔底下
加入CMP3_MCI.h
#include <stdio.h>
#include "CMP3_MCI.h" ///在FB下載
CMP3_MCI mp3;/// int a; 宣告變數
int main(int argc, char *argv[])
{
    //PlaySound("Femaleha.wav",NULL,SND_ASYNC);
    mp3.Load ("KatawareDoki.mp3");  //讀入mp3檔
    mp3.Play ();  //播放mp3檔
    printf("現在在待輸入a\n");
    int a;

    scanf("%d", &a);///等待輸入時,程式還沒結束
    ......
}

沒有留言:

張貼留言