home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / mac / SiteBldr / AMOVIE / SDK / _SETUP / COMMON.Z / synthprp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-15  |  2.1 KB  |  56 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992 - 1996  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. //  synthprp.h
  13. //
  14. //  CSynthProperties
  15.  
  16. class CSynthProperties : public CBasePropertyPage {
  17.  
  18. public:
  19.  
  20.     CSynthProperties(LPUNKNOWN lpUnk, HRESULT *phr);
  21.     static CUnknown *CreateInstance(LPUNKNOWN lpunk, HRESULT *phr);
  22.  
  23.     HRESULT OnConnect(IUnknown *pUnknown);
  24.     HRESULT OnDisconnect();
  25.     HRESULT OnActivate();
  26.     HRESULT OnDeactivate();
  27.     HRESULT OnApplyChanges();
  28.     BOOL OnReceiveMessage(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam);
  29.  
  30. private:
  31.  
  32.     static BOOL CALLBACK DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  33.  
  34.     void    InitPropertiesDialog(HWND hwndParent);
  35.     void    OnFreqSliderNotification(WPARAM wParam, WORD wPosition);
  36.     void    OnAmpSliderNotification(WPARAM wParam, WORD wPosition);
  37.     void    RecalcFreqSlider(void );
  38.     void    SetDirty(void );
  39.  
  40.     HWND    m_hwndFreqSlider;           // handle of slider
  41.     HWND    m_hwndFreqText;             // Handle of frequency text window
  42.     HWND    m_hwndAmplitudeSlider;      // handle of slider
  43.     HWND    m_hwndAmplitudeText;        // Handle of amplitude text window
  44.  
  45.     int     m_iWaveformOriginal;        // WAVE_SINE ...
  46.     int     m_iFrequencyOriginal;       // if not using sweep, this is the frequency
  47.     int     m_iBitsPerSampleOriginal;   // 8 or 16
  48.     int     m_iChannelsOriginal;        // 1 or 2
  49.     int     m_iSamplesPerSecOriginal;   // 8000, 11025, ...
  50.     int     m_iAmplitudeOriginal;       // 0 to 100
  51.     int     m_iSweepStart;              // Sweep range on freq slider
  52.     int     m_iSweepEnd;
  53.  
  54.     ISynth  *m_pSynth;                  // Interface to the synthsizer
  55. };
  56.