diff options
author | Joerg Mueller <nexyon@gmail.com> | 2009-08-21 23:39:28 +0400 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2009-08-21 23:39:28 +0400 |
commit | f248b25152db25c03c9e296ed965b6925924829a (patch) | |
tree | 6827d9d24d0d570b14f355ba9128f8c8adefa936 /intern/audaspace/ffmpeg/AUD_FFMPEGReader.h | |
parent | 647fd95c7fc25170ec2f1c75137f4e6f39c66651 (diff) |
Audio file loading backend libsndfile!
Diffstat (limited to 'intern/audaspace/ffmpeg/AUD_FFMPEGReader.h')
-rw-r--r-- | intern/audaspace/ffmpeg/AUD_FFMPEGReader.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/intern/audaspace/ffmpeg/AUD_FFMPEGReader.h b/intern/audaspace/ffmpeg/AUD_FFMPEGReader.h index 645f5f356f0..6e303934f36 100644 --- a/intern/audaspace/ffmpeg/AUD_FFMPEGReader.h +++ b/intern/audaspace/ffmpeg/AUD_FFMPEGReader.h @@ -27,7 +27,9 @@ #define AUD_FFMPEGREADER #include "AUD_IReader.h" +#include "AUD_Reference.h" class AUD_Buffer; + struct AVCodecContext; extern "C" { #include <libavformat/avformat.h> @@ -90,6 +92,11 @@ private: int m_stream; /** + * The memory file to read from, only saved to keep the buffer alive. + */ + AUD_Reference<AUD_Buffer> m_membuffer; + + /** * Decodes a packet into the given buffer. * \param packet The AVPacket to decode. * \param buffer The target buffer. @@ -109,11 +116,10 @@ public: /** * Creates a new reader. * \param buffer The buffer to read from. - * \param size The size of the buffer. * \exception AUD_Exception Thrown if the buffer specified cannot be read * with ffmpeg. */ - AUD_FFMPEGReader(unsigned char* buffer, int size); + AUD_FFMPEGReader(AUD_Reference<AUD_Buffer> buffer); /** * Destroys the reader and closes the file. |