[freespace2] mve player

Bradley Bell btb at icculus.org
Thu Jul 25 21:22:26 EDT 2002


Cool, it even works in OS X, and probably everywhere else SDL supports, with
this little patch:

--- mveplay.c~  Thu Jul 25 18:13:04 2002
+++ mveplay.c   Thu Jul 25 18:13:37 2002
@@ -237,7 +237,11 @@
     mve_audio_compressed = (flags >> 2) & 1;
     mve_audio_spec = (SDL_AudioSpec *)malloc(sizeof(SDL_AudioSpec));
     mve_audio_spec->freq = sample_rate;
+#ifdef __BIG_ENDIAN__
+    mve_audio_spec->format = ((flags >> 1) & 1)?AUDIO_S16MSB:AUDIO_U8;
+#else
     mve_audio_spec->format = ((flags >> 1) & 1)?AUDIO_S16LSB:AUDIO_U8;
+#endif
     mve_audio_spec->channels = (flags & 1)?2:1;
     mve_audio_spec->samples = 32768;
     mve_audio_spec->callback = mve_audio_callback;


Quoting Bradley Bell <btb at icculus.org>:

> I've made a couple of improvements to the before-mentioned mve player source
> code, and decided to put up a tarball, so that if anyone wants to make
> further
> changes, we have a central source to work from.
> 
> My changes are:
>   Use SDL for threading and timers, for better portability.
>   Added support for mono, 8bit, uncompressed audio (i.e. ben-h.mve on the
> descent 2 cd)
> 
> It can be downloaded at http://icculus.org/d2x/src/mveplay-0.0.1.tar.gz
> 
> It works on linux and windows, but there are lots of memory problems with
> some
> movies...
> 
> -brad
> 






More information about the freespace2 mailing list