From 1563e40183134fd3b5a268c18fb590c9efaae66c Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Fri, 16 Sep 2022 16:20:43 +0200 Subject: [PATCH 1/2] viz API change update --- src/MilkdropXBMC.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MilkdropXBMC.cpp b/src/MilkdropXBMC.cpp index 1585159..5c4d906 100644 --- a/src/MilkdropXBMC.cpp +++ b/src/MilkdropXBMC.cpp @@ -63,7 +63,7 @@ class ATTR_DLL_LOCAL CVisualizationMilkdrop bool LoadPreset(int select) override; bool RandomPreset() override; bool LockPreset(bool lockUnlock) override; - void AudioData(const float* audioData, int audioDataLength, float *freqData, int freqDataLength) override; + void AudioData(const float* audioData, size_t audioDataLength) override; ADDON_STATUS SetSetting(const std::string& settingName, const kodi::addon::CSettingValue& settingValue) override; private: @@ -125,9 +125,9 @@ void CVisualizationMilkdrop::SetPresetDir(const char *pack) //----------------------------------------------------------------------------- ADDON_STATUS CVisualizationMilkdrop::Create() { - _mkdir(Profile().c_str()); + _mkdir(kodi::addon::GetUserPath().c_str()); - std::string presets = Presets().append("\\presets\\"); + std::string presets = kodi::addon::GetAddonPath("\\presets\\"); urlEscape(presets); m_presetsDir = "zip://" + presets; @@ -192,7 +192,7 @@ unsigned char waves[2][512]; //-- Audiodata ---------------------------------------------------------------- // Called by XBMC to pass new audio data to the vis //----------------------------------------------------------------------------- -void CVisualizationMilkdrop::AudioData(const float* pAudioData, int iAudioDataLength, float *pFreqData, int iFreqDataLength) +void CVisualizationMilkdrop::AudioData(const float* pAudioData, size_t iAudioDataLength) { int ipos=0; while (ipos < 512) From fd1e42a92d73cae0e044a5599c07eec6d56abf6f Mon Sep 17 00:00:00 2001 From: Alwin Esch Date: Fri, 9 Sep 2022 20:56:33 +0200 Subject: [PATCH 2/2] increase version to 20.2.0 --- visualization.milkdrop/addon.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visualization.milkdrop/addon.xml.in b/visualization.milkdrop/addon.xml.in index 26a653e..ff8b9a6 100644 --- a/visualization.milkdrop/addon.xml.in +++ b/visualization.milkdrop/addon.xml.in @@ -1,7 +1,7 @@  @ADDON_DEPENDS@