forked from FNA-XNA/FAudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.ffmpeg
26 lines (21 loc) · 1 KB
/
README.ffmpeg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FAudio has optional support for decoding xWMA resources using FFmpeg.
Please note that enabling support for FFmpeg means your project has to comply
with the FFmpeg license. For more information please consult the FFmpeg project at
https://www.ffmpeg.org/legal.html
Building with FFmpeg support on *nix platforms
----------------------------------------------
Enable FFmpeg support at cmake configure-time with `-DFFMPEG=ON`.
When enabling FFMpeg support you must also specify
`-DFFmpeg_INCLUDE_DIR=`
with the path to the system's ffmpeg include folder.
Ex.
`-DFFmpeg_INCLUDE_DIR=/usr/include/`
or
`-DFFmpeg_INCLUDE_DIR=/usr/include/ffmpeg/`
Building with FFmpeg support on Windows
---------------------------------------
You'll need to modify the Visual Studio project for FAudio to enable support:
- add HAVE_FFMPEG=1 to preprocessor defines
- add the correct include and lib paths to the VisualC++ directories.
- add avutil.lib and avcodec.lib to the linker input
- add faudio_ffmpeg.c to the sources of the project