2009-11-21 10:41:44 +00:00
|
|
|
#ifndef MANGLE_FFMPEG_OPENAL_H
|
|
|
|
#define MANGLE_FFMPEG_OPENAL_H
|
2009-11-17 17:33:19 +00:00
|
|
|
|
2009-11-21 10:49:31 +00:00
|
|
|
#include "input_filter.h"
|
2009-11-17 17:33:19 +00:00
|
|
|
#include "input_ffmpeg.h"
|
|
|
|
#include "output_openal.h"
|
|
|
|
|
2009-11-21 10:41:44 +00:00
|
|
|
namespace Mangle {
|
2009-11-17 17:33:19 +00:00
|
|
|
namespace Sound {
|
|
|
|
|
|
|
|
/// A PairManager filter that adds FFmpeg decoding to OpenAL
|
2009-11-21 10:49:31 +00:00
|
|
|
class OpenAL_FFM_Manager : public InputFilter
|
2009-11-17 17:33:19 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
OpenAL_FFM_Manager()
|
|
|
|
{
|
2009-11-21 10:49:31 +00:00
|
|
|
set(new OpenAL_Manager,
|
|
|
|
new FFM_InputManager);
|
2009-11-17 17:33:19 +00:00
|
|
|
}
|
|
|
|
~OpenAL_FFM_Manager()
|
|
|
|
{
|
|
|
|
delete snd;
|
|
|
|
delete inp;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}}
|
|
|
|
#endif
|