diff --git a/COMPILE-linux.txt b/COMPILE-linux.txt index 4c6fdd7e85..0ce244e4d1 100644 --- a/COMPILE-linux.txt +++ b/COMPILE-linux.txt @@ -39,7 +39,8 @@ Dependencies needed to build OpenMW: OGRE 1.4.5 (3d engine) OIS-1.0.0 (input system) OpenAL (3d sound system) -libavcodec (MP3 library) +libavcodec, + libavformat (For MP3 playback) gcc and g++ (C++ compiler) GNU make (build tool for C++ files) DMD 1.031 (D compiler) @@ -51,7 +52,8 @@ versions might work. OGRE, OIS and the other libraries have dependencies of their own, so I recommend using an automated package tool to install as many of these as possible. On ubuntu, try typing: -sudo apt-get install libogre-dev libavcodec-dev libois-dev build-essential g++ gdc +sudo apt-get install libogre-dev libavcodec-dev libavformat-dev libois-dev build-essential g++ gdc + If you want to install Ogre, OpenAL or OIS manually, try: OGRE: http://ogre3d.org/ diff --git a/sound/avcodec.d b/sound/avcodec.d index 8e3ae12216..e83d50b2fb 100644 --- a/sound/avcodec.d +++ b/sound/avcodec.d @@ -1,3 +1,5 @@ +module sound.avcodec; + extern (C): // A unique handle that represents an AV file @@ -19,7 +21,7 @@ void cpp_closeAVFile(AVFile file); // Get a unique handle to an audio stream in the file. The given number // is for files that can contain multiple audio streams (generally you // would pass 0, for the first audio stream) -void *cpp_getAVAudioStream(AVFile file, int streamnum); +AVAudio cpp_getAVAudioStream(AVFile file, int streamnum); // Get audio info representing the current stream. Returns 0 for success // (not likely to fail)