2 * Copyright © 2010-2013 Team XBMC
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 class asIScriptEngine;
29 bool RandomPresetsEnabled;
31 bool TransitionsEnabled;
32 bool ShowAudioAnalysis;
35 bool ShowDebugConsole;
36 float TimeBetweenPresets;
37 float TimeBetweenPresetsRand;
41 RandomPresetsEnabled = true;
43 TransitionsEnabled = true;
44 ShowAudioAnalysis = false;
45 StopFirstPreset = true;
47 ShowDebugConsole = false;
48 TimeBetweenPresets = 10.0f;
49 TimeBetweenPresetsRand = 0.0f;
57 void Init( LPDIRECT3DDEVICE9 pD3DDevice, int iPosX, int iPosY, int iWidth, int iHeight, float fPixelRatio );
58 void Start( int iChannels, int iSamplesPerSec, int iBitsPerSample, const char* szSongName );
60 void AudioData( const float* pAudioData, int iAudioDataLength, float* pFreq, int iFreqDataLength );
62 void UpdateTrack( VisTrack* pVisTrack );
63 void UpdateAlbumArt( char* artFilename );
64 void LoadNextPreset();
65 void LoadPreviousPreset();
66 void LoadRandomPreset();
67 void LoadPreset( int PresetId );
69 int GetCurrentPresetIndex();
70 int GetPresets( char*** Presets );
72 UserSettings& GetUserSettings();
77 bool InitAngelScript();
78 asIScriptEngine* m_pScriptEngine;