Skip to content

Commit

Permalink
mingw avi support
Browse files Browse the repository at this point in the history
  • Loading branch information
mittorn committed Apr 28, 2016
1 parent 0bf4c34 commit 406fef4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion engine/common/avikit.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ GNU General Public License for more details.
#include "common.h"
#include "client.h"
#include "gl_local.h"
#if defined(_WIN32) && !defined(__MINGW32__)
#if defined(_WIN32)
#define USE_VFW
#endif
#ifdef USE_VFW
#ifdef __MINGW32__
#include <msacm.h>
#include <mmreg.h>
#endif
#include <vfw.h> // video for windows

// msvfw32.dll exports
Expand Down Expand Up @@ -133,6 +137,13 @@ typedef struct movie_state_s

static qboolean avi_initialized = false;
static movie_state_t avi[2];
#ifndef ACM_STREAMSIZEF_SOURCE
#define ACM_STREAMSIZEF_SOURCE 0

#define ACM_STREAMCONVERTF_BLOCKALIGN 0x00000004
#define ACM_STREAMCONVERTF_START 0x00000010
#define ACM_STREAMCONVERTF_END 0x00000020
#endif
#endif
// Converts a compressed audio stream into uncompressed PCM.
qboolean AVI_ACMConvertAudio( movie_state_t *Avi )
Expand Down

0 comments on commit 406fef4

Please sign in to comment.