____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include "ogg/ogg.h"
#include "vorbis/codec.h"
#include "theora/theora.h"
Go to the source code of this file.
Classes | |
| struct | OggData |
Functions | |
| int | OggInit (CFile *f, OggData *data) |
| void | OggFree (OggData *data) |
| int | OggGetNextPage (ogg_page *page, ogg_sync_state *sync, CFile *f) |
| int | VorbisProcessData (OggData *data, char *buffer) |
| int | PlayMovie (const std::string &name) |
| < Play a movie file | |
Definition in file movie.h.
| void OggFree | ( | OggData * | data | ) |
Definition at line 299 of file ogg.cpp.
References OggData::astream, OggData::audio, OggData::sync, OggData::tcomment, OggData::tinfo, OggData::tstate, OggData::vblock, OggData::vcomment, OggData::vdsp, OggData::video, OggData::vinfo, and OggData::vstream.
Referenced by LoadVorbis(), PlayMovie(), and CSampleVorbisStream::~CSampleVorbisStream().
| int OggGetNextPage | ( | ogg_page * | page, | |
| ogg_sync_state * | sync, | |||
| CFile * | f | |||
| ) |
Definition at line 83 of file ogg.cpp.
References CFile::read().
Referenced by OggInit(), TheoraProcessData(), and VorbisProcessData().
Definition at line 153 of file ogg.cpp.
References OggData::astream, OggData::audio, OggGetNextPage(), OggData::page, CFile::read(), CFile::seek(), OggData::sync, OggData::tcomment, OggData::tinfo, OggData::tstate, OggData::vblock, OggData::vcomment, OggData::vdsp, OggData::video, OggData::vinfo, and OggData::vstream.
Referenced by LoadVorbis(), and PlayMovie().
| int PlayMovie | ( | const std::string & | name | ) |
< Play a movie file
Play a video file.
| name | Filename of movie file. |
Definition at line 178 of file movie.cpp.
References _event_callback_::ButtonPressed, _event_callback_::ButtonReleased, CSample::Channels, CL_OPEN_READ, CFile::close(), data, OggData::File, GetCallbacks(), CVideo::Height, Invalidate(), _event_callback_::KeyPressed, _event_callback_::KeyReleased, _event_callback_::KeyRepeated, LibraryFileName(), LoadVorbis(), _event_callback_::MouseExit, _event_callback_::MouseMoved, MovieCallbackButtonPressed(), MovieCallbackButtonReleased(), MovieCallbackKeyPressed(), MovieCallbackKeyReleased(), MovieCallbackKeyRepeated(), MovieCallbackMouseExit(), MovieCallbackMouseMove(), MovieStop, NetworkEvent(), _event_callback_::NetworkEvent, OggFree(), OggInit(), CFile::open(), OutputTheora(), PlayAudioStream, PlayMusic(), RealizeVideoMemory(), CSample::SampleSize, SetCallbacks(), StopMusic(), TheoraProcessData(), TheScreen, OggData::tinfo, OggData::tstate, Video, OggData::video, WaitEventsOneFrame(), and CVideo::Width.
Referenced by ShowTitleScreens().
| int VorbisProcessData | ( | OggData * | data, | |
| char * | buffer | |||
| ) |
Definition at line 100 of file ogg.cpp.
References OggData::astream, OggData::File, OggGetNextPage(), OggData::page, OggData::sync, OggData::vblock, OggData::vdsp, and OggData::vinfo.
Referenced by VorbisStreamRead().
1.5.6