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

📄 tsample.h

📁 SoundMixer example application is compatible with Series 60 Developer Platform v1.0 and v2.0. It
💻 H
字号:
   /*
    *
============================================================================
    *  Name     : TSample.h
    *  Part of  : SoundMixer
    *  Created  : 03/01/2003 by Forum Nokia
    *  Description:
    *     This is the project specification file for SoundMixer.
    *     Initial content was generated by Series 60 AppWizard.
    *
    *  Version  : 1.0.0
    *  Copyright: Forum Nokia
    *
============================================================================
    */

#ifndef __TSAMPLE_H__
#define __TSAMPLE_H__

// INCLUDES
#include <e32std.h>

// CLASS DECLARATION
/**
*	This type is a sound sample class for sound mixer.
*	These samples support 16-bit samples with definable loops.
*	If loop is defined, the whole sample is first played and
*	then keeps repeating the repeat area.
*/
class TSample
	{
	public:
		inline TSample()
			: iData( NULL )
			{}

		inline TSample( TInt16* aData, TInt aLength )
			: iData( aData )
			, iLength( aLength )
			, iRepStart( 0 )
			, iRepEnd( 0 )
			{}


		inline TSample( TInt16* aData, TInt aLength, TInt aRepStart, TInt aRepEnd )
			: iData( aData )
			, iLength( aLength )
			, iRepStart( aRepStart )
			, iRepEnd( aRepEnd )
			{}


		TInt16* iData;
		TInt	iLength;
		TInt	iRepStart;
		TInt	iRepEnd;
	};


#endif

⌨️ 快捷键说明

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