【问题标题】:Program for mp3 player not workingmp3 播放器程序不工作
【发布时间】:2016-03-13 10:51:53
【问题描述】:
#include <conio.h>
#include "inc/fmod.hpp"

FSOUND_SAMPLE* handle;

int main ()
{
   // init FMOD sound system
   FSOUND_Init (44100, 32, 0);

   // load and play mp3
   handle=FSOUND_Sample_Load (0,"my.mp3",0, 0, 0);
   FSOUND_PlaySound (0,handle);

   // wait until the users hits a key to end the app
   while (!_kbhit())
   {
   }

   // clean up
   FSOUND_Sample_Free (handle);
   FSOUND_Close();
}
}

此程序未在 dev c++ 中编译。

ERROR-2 24 E:\coding softwares\dev c++\Dev-Cpp\Untitled1.cpp [Error] inc/fmod.hpp: No such file or directory

【问题讨论】:

  • 包含的文件丢失了,所以你必须检查你的文件夹是否存在。

标签: mp3


【解决方案1】:

正如编译器已经告诉您的那样,您尝试引用的标头不存在(在该位置)。

检查您输入的名称是否正确。

【讨论】:

    猜你喜欢
    • 2014-02-25
    • 1970-01-01
    • 1970-01-01
    • 2020-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多