簡體   English   中英

Borland Turbo C ++ 4.5中的FMOD錯誤

[英]FMOD error in borland turbo c++ 4.5

當我嘗試編譯時,它給了我26條錯誤,但是一切都在正確的位置,但是無法理解這些錯誤,而這些錯誤大部分都是常量,時間太長。 請幫助我想通過C編程播放mp3文件。

*錯誤顯示在jpg圖片中

 #include "inc/fmod.h"

    FMUSIC_MODULE* handle;

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

       // load song
       handle=FMUSIC_LoadSong ("don.mp3");

       // play song only once
       // when you want to play a midi file you have to disable looping
       // BEFORE playing the song else this command has no effect!
       FMUSIC_SetLooping (handle, false);

       // play song
       FMUSIC_PlaySong (handle);

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

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

http://i.stack.imgur.com/JH4Ts.jpg

Borland Turbo C ++早於大多數C ++標准和現代C。我不希望FMOD或任何現代庫可與此編譯器一起使用。

Visual C ++可以Express形式免費使用,並且是一個更好的編譯器。

您列出的代碼是FMOD 3代碼,但是您正在使用FMOD 4標頭(可能還有libs)。 這將不起作用,我從您的錯誤圖片中可以看到您還有其他麻煩,也許包括路徑設置不正確。

我們提供了一個需要鏈接的Borland庫:'fmodex_bc.lib',但這又是FMOD 4代碼,我強烈建議您查看SDK附帶的“ playstream”示例,該示例演示了MP3播放。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM