Patches for music and movies
Pierre Willenbrock
pierre at linux-net.dnsalias.org
Sat Mar 26 09:16:27 EST 2005
These patches enable streaming audio support and movie playback.
The patches are against current cvs. You still need to put MVE=yes into
your Makefile to make freespace use the movie support.
So far the code is tested on an Athlon 1400 and a Duron 600, both with
up-to-date gentoo, with varying degrees of frameskiping in movie
playback, but sound is working flawlessly.
Here are the changes made:
mvelib.cpp:
changed file reading mechanism to use cfile
mvelib.h:
changed filename parameters from (const char *) to (char *)(as needed
by cfopen)
2d.cpp:
added full gr_bitmap_ex support
decoder16.cpp:
fixed bad memory pointer handling(it looks better, too)
movie.cpp:
expanded search path for movies to ./:./movies/:./data/movies/
implemented movie_play_two(needed after endgame)
mveplayer.cpp:
fixed audio implementation
added video implementation for unix via gr_bitmap_ex(it is slow)
skips frames if needed
movie can be stopped by hitting ESC
ds.cpp:
changed playback samplerate to 44100(openAL has a bug in downsampling
code, and the movies are 44100Hz)
acm-unix.cpp:
implemented stream conversion
audiostr.cpp:
implemented streaming audio
sound.cpp:
enabled initialization of ACM for unix
Pierre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: audiostream.dif
Type: video/x-dv
Size: 37666 bytes
Desc: not available
URL: <http://icculus.org/pipermail/freespace2/attachments/20050326/90879d0c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: movie.dif
Type: video/x-dv
Size: 22209 bytes
Desc: not available
URL: <http://icculus.org/pipermail/freespace2/attachments/20050326/90879d0c/attachment-0001.bin>
More information about the freespace2
mailing list