forked from teamnwah/openmw-tes3coop
namespace fix, improve comment
This commit is contained in:
parent
9da1c49276
commit
a9be8628b9
2 changed files with 8 additions and 3 deletions
5
extern/ogre-ffmpeg-videoplayer/videodefs.hpp
vendored
5
extern/ogre-ffmpeg-videoplayer/videodefs.hpp
vendored
|
@ -1,6 +1,9 @@
|
|||
#ifndef VIDEOPLAYER_DEFS_H
|
||||
#define VIDEOPLAYER_DEFS_H
|
||||
|
||||
namespace Video
|
||||
{
|
||||
|
||||
enum {
|
||||
AV_SYNC_AUDIO_MASTER, // Play audio with no frame drops, sync video to audio
|
||||
AV_SYNC_VIDEO_MASTER, // Play video with no frame drops, sync audio to video
|
||||
|
@ -9,4 +12,6 @@ enum {
|
|||
AV_SYNC_DEFAULT = AV_SYNC_EXTERNAL_MASTER
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -4,13 +4,10 @@
|
|||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
namespace Video
|
||||
{
|
||||
|
||||
struct VideoState;
|
||||
class MovieAudioDecoder;
|
||||
class MovieAudioFactory;
|
||||
|
||||
/**
|
||||
|
@ -22,6 +19,9 @@ namespace Video
|
|||
VideoPlayer();
|
||||
~VideoPlayer();
|
||||
|
||||
/// @brief Set the MovieAudioFactory to use.
|
||||
/// @par This class must be implemented by the user and is responsible for reading the decoded audio data.
|
||||
/// @note If you do not set up a MovieAudioFactory, then audio streams will be ignored and the video will be played with no sound.
|
||||
/// @note Takes ownership of the passed pointer.
|
||||
void setAudioFactory (MovieAudioFactory* factory);
|
||||
|
||||
|
|
Loading…
Reference in a new issue