mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 11:59:58 -05:00
Initial community commit
This commit is contained in:
47
Src/Plugins/DSP/dsp_sps/dxi/AudioPlugIn.h
Normal file
47
Src/Plugins/DSP/dsp_sps/dxi/AudioPlugIn.h
Normal file
@@ -0,0 +1,47 @@
|
||||
// AudioPlugIn.h: interface for the CAudioPlugIn class.
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_AUDIOPLUGIN_H__D9177ACC_DFF4_4C13_8FB9_F949C35BFEF0__INCLUDED_)
|
||||
#define AFX_AUDIOPLUGIN_H__D9177ACC_DFF4_4C13_8FB9_F949C35BFEF0__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
struct DXiEvent;
|
||||
struct MfxEvent;
|
||||
|
||||
#include "DXi.h"
|
||||
|
||||
// TODO: #define PROCESS_IN_PLACE to FALSE if necessary, i.e., for plug-ins
|
||||
// which convert mono to stereo.
|
||||
#define PROCESS_IN_PLACE (TRUE)
|
||||
|
||||
class CAudioPlugIn :
|
||||
public CDXi
|
||||
{
|
||||
public:
|
||||
CAudioPlugIn( HRESULT* phr );
|
||||
virtual ~CAudioPlugIn();
|
||||
|
||||
HRESULT Initialize();
|
||||
|
||||
HRESULT IsValidInputFormat( const WAVEFORMATEX* pwfx ) const;
|
||||
HRESULT IsValidOutputFormat( const WAVEFORMATEX* pwfx ) const;
|
||||
HRESULT IsValidTransform( const WAVEFORMATEX* pwfxIn, const WAVEFORMATEX* pwfxOut ) const;
|
||||
HRESULT SuggestOutputFormat( WAVEFORMATEX* pwfx ) const;
|
||||
|
||||
HRESULT Process( LONGLONG llSampAudioTimestamp,
|
||||
AudioBuffer* pbufIn,
|
||||
AudioBuffer* pbufOut );
|
||||
|
||||
HRESULT AllocateResources();
|
||||
HRESULT FreeResources();
|
||||
|
||||
int PersistGetSize() const;
|
||||
HRESULT PersistLoad( IStream* pStream );
|
||||
HRESULT PersistSave( IStream* pStream );
|
||||
};
|
||||
|
||||
#endif // !defined(AFX_AUDIOPLUGIN_H__D9177ACC_DFF4_4C13_8FB9_F949C35BFEF0__INCLUDED_)
|
||||
Reference in New Issue
Block a user