1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-27 14:09:33 +02:00
audacity/src/ondemand/ODDecodeFFmpegTask.h
v.audacity d90e6c5285 Bug 539 (P2) - Audacity does not build if configured --without-ffmpeg
more pinpointed fix that should close this
2012-07-25 02:00:48 +00:00

56 lines
1.4 KiB
C++

/**********************************************************************
Audacity: A Digital Audio Editor
Audacity(R) is copyright (c) 1999-2012 Audacity Team.
License: GPL v2. See License.txt.
ODDecodeFFmpegTask.h
Michael Chinen
******************************************************************/
#ifdef USE_FFMPEG
#include "../Experimental.h"
#ifdef EXPERIMENTAL_OD_FFMPEG
#ifndef __ODDECODEFFMPEGTASK__
#define __ODDECODEFFMPEGTASK__
#include <vector>
#include "ODDecodeTask.h"
#include "ODTaskThread.h"
class ODFileDecoder;
class WaveTrack;
/// A class representing a modular task to be used with the On-Demand structures.
class ODDecodeFFmpegTask:public ODDecodeTask
{
public:
/// Constructs an ODTask
ODDecodeFFmpegTask(void* scs,int numStreams, WaveTrack*** channels, void* formatContext, int streamIndex);
virtual ~ODDecodeFFmpegTask();
virtual ODTask* Clone();
///Creates an ODFileDecoder that decodes a file of filetype the subclass handles.
virtual ODFileDecoder* CreateFileDecoder(const wxString & fileName);
///Lets other classes know that this class handles the ffmpeg type
///Subclasses should override to return respective type.
virtual unsigned int GetODType(){return eODFFMPEG;}
protected:
WaveTrack*** mChannels;
int mNumStreams;
void* mScs;
void* mFormatContext;
int mStreamIndex;
};
#endif //__ODDECODEFFMPEGTASK__
#endif //EXPERIMENTAL_OD_FFMPEG
#endif // USE_FFMPEG