⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 soundmixercontainer.h

📁 在symbian中
💻 H
字号:
/*
 * ===================================================================
 *  Name     : SoundMixerContainer.h
 *  Part of  : SoundMixer
 *  Created  : 03/30/2006 by Forum Nokia
 *  Description:
 *     This is the project specification file for SoundMixer.
 *  Version  : 2.0.0
 *  Copyright: Forum Nokia
 * ===================================================================
 */

#ifndef __SOUNDMIXERCONTAINER_H__
#define __SOUNDMIXERCONTAINER_H__

// INCLUDES

#include <coecntrl.h>
#include <coemain.h>
#include <mdaaudiooutputstream.h>
#include <mda\common\audio.h>
#include "TSample.h"

// FORWARD DECLARATIONS
class CSndMixer;

// CLASS DECLARATION
/**
*  CSoundMixerContainer  container control class.
*  
*/
class CSoundMixerContainer 
  : public CCoeControl
  , public MCoeForegroundObserver
  {
  public: // Constructors and destructor
        
    // Second phase constructor
        void ConstructL(const TRect& aRect);

    // Default destructor
        ~CSoundMixerContainer();

    public: // CCoeControl

    TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );

  private: // MCoeForegroundObserver

    void HandleGainingForeground();
    void HandleLosingForeground();

  private:

    /// Static callback function for timer, 
    /// called periodically
    /// @param aPtr pointer to this class
    static TInt TimerCallBack( TAny* aPtr );

    /// Timer function called from TimerCallBack
    /// takes care for everything moving in this example
    TInt DoTimer();

  public: // for AppUI

    /// Stops mixer
    void StopMixer();

    /// Starts mixer
    void StartMixer();

    /// increases volume
    void VolumeUp();

    /// decreases volume
    void VolumeDown();

    private: // data

    CSndMixer*  iSndMixer;      // Sound mixer

    TSample   iMusicSample;   // sampled music
    TSample   iEffectSample;    // sound effect
    TSample   iEffectSample2;   // sound effect
    
    TPoint    iPosition[ 8 ];   // positions for blocks
    TPoint    iSpeed[ 8 ];    // speeds for blocks

    CPeriodic* iTimer;        // timer which calls TimerCallBack  
    };

#endif

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -