Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

CascadeVizData.h

Go to the documentation of this file.
00001 //
00002 // CascadeVizData.h - header file for class CascadeVizData
00003 //
00004 // Copyright (c) 2004, Roku, LLC.  All rights reserved.
00005 //
00008 
00009 #ifndef _ROKU_INCLUDE_CASCADE_AV_CASCADEVIZDATA_H
00010 #define _ROKU_INCLUDE_CASCADE_AV_CASCADEVIZDATA_H
00011 
00012 #include <cascade/CascadeObject.h>
00013 
00024 class CascadeVizData : public CascadeObject
00025 {
00026 public:
00027         CascadeVizData();
00031         virtual ~CascadeVizData();
00035 public:
00036     // functions for clients that will be performing visualizations
00037     virtual bool IsPlaying();
00038     virtual bool IsPaused();
00039     virtual bool IsStopped();
00040     virtual u32  GetPlaybackMilliseconds();
00041     virtual bool GetVULevels(u16 & nLeftChannelToSet, u16 & nRightChannelToSet, u16 nScale = 0);
00042         // GetVULevels() will set nLeftChannelToSet and nRightChannelToSet with the VU
00043         // level from [0..nScale).  e.g. if nScale is 256, then valid values are from
00044         // [0..255].  If nScale is 0, then the full range of [0..65535] will be used.
00045     virtual bool GetScopeDataMono(s16 * pScopeDataToSet, u16 nNumDataPoints, u16 nYScale = 0);
00046     virtual bool GetScopeDataStereo(s16 * pScopeDataLeftToSet, s16 * pScopeDataRightToSet, u16 nNumDataPoints, u16 nYScale = 0);
00047     virtual bool GetScopeDataLeft(s16 * pScopeDataToSet, u16 nNumDataPoints, u16 nYScale = 0);
00048     virtual bool GetScopeDataRight(s16 * pScopeDataToSet, u16 nNumDataPoints, u16 nYScale = 0);
00049         // GetScopeData...() fills *pScopeDataToSet with nNumDataPoints data points
00050         // of signed 16 bit values in the range of [-nYScale .. nYScale), centered on 0.
00051         // e.g. if nYScale is 128, pScopeDataToSet will be set with values from
00052         // [-128..127].  if nYScale is 0, or nYScale >= 32767, then the full scale
00053         // of [-32768..32767] will be used.
00054     //virtual bool GetFrequencyData(u8 * pFrequencyDataToSet, u32 nNumDataPoints);
00055 private:
00056     class Data;
00057     Data * m_pData;
00058 };
00059 
00060 #endif // #ifndef _ROKU_INCLUDE_CASCADE_AV_CASCADECODEC_H
00061 
00063 // LOG
00065 // 23-Mar-05    dwoodward       created

Generated on Sun Jul 24 14:27:17 2005 for Cascade Library by  doxygen 1.4.1