sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description: Definition of the Audio Visualization Observer class.
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
|
sl@0
|
20 |
#ifndef MVISUALIZATIONOBSERVER_H
|
sl@0
|
21 |
#define MVISUALIZATIONOBSERVER_H
|
sl@0
|
22 |
|
sl@0
|
23 |
class CVisualization;
|
sl@0
|
24 |
// CLASS DECLARATION
|
sl@0
|
25 |
|
sl@0
|
26 |
|
sl@0
|
27 |
class TVisualizationData
|
sl@0
|
28 |
{
|
sl@0
|
29 |
public:
|
sl@0
|
30 |
|
sl@0
|
31 |
/**
|
sl@0
|
32 |
* Constructor.
|
sl@0
|
33 |
*/
|
sl@0
|
34 |
TVisualizationData() { iFrequencyData = NULL, iWaveFormData = NULL; }
|
sl@0
|
35 |
|
sl@0
|
36 |
TUint64 iTimeStamp;
|
sl@0
|
37 |
const TArray<TUint32>* iFrequencyData;
|
sl@0
|
38 |
const TArray<TInt16>* iWaveFormData;
|
sl@0
|
39 |
|
sl@0
|
40 |
};
|
sl@0
|
41 |
|
sl@0
|
42 |
|
sl@0
|
43 |
/**
|
sl@0
|
44 |
* Interface class to be implemented by objects that are interested in receiving notifications
|
sl@0
|
45 |
* from Audio Visualization object.
|
sl@0
|
46 |
*
|
sl@0
|
47 |
* @since 3.0
|
sl@0
|
48 |
*/
|
sl@0
|
49 |
class MVisualizationObserver
|
sl@0
|
50 |
{
|
sl@0
|
51 |
public:
|
sl@0
|
52 |
|
sl@0
|
53 |
/**
|
sl@0
|
54 |
* Invoked when the state of the visualization object has changed.
|
sl@0
|
55 |
* @since 3.0
|
sl@0
|
56 |
* @param aVisualization The visualization object that changed
|
sl@0
|
57 |
* @param aData The visualization data.
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
virtual void DataChanged( const CVisualization* aVisualization, TVisualizationData aData ) = 0;
|
sl@0
|
60 |
|
sl@0
|
61 |
/**
|
sl@0
|
62 |
* Invoked when the visualization data rate changed.
|
sl@0
|
63 |
* @since 3.0
|
sl@0
|
64 |
* @param aVisualization The visualization object that changed
|
sl@0
|
65 |
* @param aData The visualization data.
|
sl@0
|
66 |
*/
|
sl@0
|
67 |
virtual void DataRateChanged( const CVisualization* aVisualization ) = 0;
|
sl@0
|
68 |
|
sl@0
|
69 |
/**
|
sl@0
|
70 |
* Invoked when the visualization frequency band count changed.
|
sl@0
|
71 |
* @since 3.0
|
sl@0
|
72 |
* @param aVisualization The visualization object that changed
|
sl@0
|
73 |
* @param aData The visualization data.
|
sl@0
|
74 |
*/
|
sl@0
|
75 |
virtual void FrequencyBandCountChanged( const CVisualization* aVisualization ) = 0;
|
sl@0
|
76 |
|
sl@0
|
77 |
/**
|
sl@0
|
78 |
* Invoked when the visualization is preempted.
|
sl@0
|
79 |
* @since 3.0
|
sl@0
|
80 |
*/
|
sl@0
|
81 |
virtual void VisualizationPreempted( ) = 0;
|
sl@0
|
82 |
|
sl@0
|
83 |
/**
|
sl@0
|
84 |
* Invoked when the visualization is resumed.
|
sl@0
|
85 |
* @since 3.0
|
sl@0
|
86 |
*/
|
sl@0
|
87 |
virtual void VisualizationResumed( ) = 0;
|
sl@0
|
88 |
|
sl@0
|
89 |
/**
|
sl@0
|
90 |
* Invoked when the visualization is started.
|
sl@0
|
91 |
* @since 3.0
|
sl@0
|
92 |
*/
|
sl@0
|
93 |
virtual void VisualizationStarted( ) = 0;
|
sl@0
|
94 |
|
sl@0
|
95 |
/**
|
sl@0
|
96 |
* Invoked when the visualization is stopped.
|
sl@0
|
97 |
* @since 3.0
|
sl@0
|
98 |
*/
|
sl@0
|
99 |
virtual void VisualizationStopped( ) = 0;
|
sl@0
|
100 |
|
sl@0
|
101 |
/**
|
sl@0
|
102 |
* Invoked when the visualization the waveform data length changed.
|
sl@0
|
103 |
* @since 3.0
|
sl@0
|
104 |
* @param aVisualization The visualization object that changed
|
sl@0
|
105 |
* @param aData The visualization data.
|
sl@0
|
106 |
*/
|
sl@0
|
107 |
virtual void WaveformDataLengthChanged( const CVisualization* aVisualization ) = 0;
|
sl@0
|
108 |
|
sl@0
|
109 |
};
|
sl@0
|
110 |
|
sl@0
|
111 |
#endif // MVISUALIZATIONOBSERVER_H
|
sl@0
|
112 |
|
sl@0
|
113 |
// End of File
|