|
Packit |
47f805 |
/*
|
|
Packit |
47f805 |
* LAME MP3 encoder for DirectShow
|
|
Packit |
47f805 |
* Basic property page
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* Copyright (c) 2000-2005 Marie Orlova, Peter Gubanov, Vitaly Ivanov, Elecard Ltd.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
47f805 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
47f805 |
* License as published by the Free Software Foundation; either
|
|
Packit |
47f805 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
47f805 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
47f805 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
47f805 |
* Library General Public License for more details.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
47f805 |
* License along with this library; if not, write to the
|
|
Packit |
47f805 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit |
47f805 |
* Boston, MA 02111-1307, USA.
|
|
Packit |
47f805 |
*/
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
class CMpegAudEncPropertyPage : public CBasePropertyPage
|
|
Packit |
47f805 |
{
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
public:
|
|
Packit |
47f805 |
static CUnknown *CreateInstance( LPUNKNOWN punk, HRESULT *phr );
|
|
Packit |
47f805 |
CMpegAudEncPropertyPage( LPUNKNOWN punk, HRESULT *phr );
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
HRESULT OnConnect(IUnknown *pUnknown);
|
|
Packit |
47f805 |
HRESULT OnDisconnect();
|
|
Packit |
47f805 |
HRESULT OnActivate();
|
|
Packit |
47f805 |
HRESULT OnDeactivate();
|
|
Packit |
47f805 |
HRESULT OnApplyChanges();
|
|
Packit |
47f805 |
BOOL OnReceiveMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
private:
|
|
Packit |
47f805 |
void InitPropertiesDialog(HWND hwndParent);
|
|
Packit |
47f805 |
void EnableControls(HWND hwndParent, bool bEnable);
|
|
Packit |
47f805 |
void SetDirty(void);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
DWORD m_dwBitrate; //constant bit rate
|
|
Packit |
47f805 |
DWORD m_dwVariable; //flag - whether the variable bit rate set
|
|
Packit |
47f805 |
DWORD m_dwMin; //specify a minimum allowed bitrate
|
|
Packit |
47f805 |
DWORD m_dwMax; //specify a maximum allowed bitrate
|
|
Packit |
47f805 |
DWORD m_dwQuality; //encoding quality
|
|
Packit |
47f805 |
DWORD m_dwVBRq; //VBR quality setting (0=highest quality, 9=lowest)
|
|
Packit |
47f805 |
DWORD m_dwSampleRate;
|
|
Packit |
47f805 |
DWORD m_dwChannelMode;
|
|
Packit |
47f805 |
DWORD m_dwCRC;
|
|
Packit |
47f805 |
DWORD m_dwForceMono;
|
|
Packit |
47f805 |
DWORD m_dwCopyright;
|
|
Packit |
47f805 |
DWORD m_dwOriginal;
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
HWND m_hwndQuality; //Slider window handle
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
int m_srIdx;
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
IAudioEncoderProperties *m_pAEProps;
|
|
Packit |
47f805 |
};
|