Skip to content

Commit

Permalink
Merge pull request #58 from AlwinEsch/Nexus-changes
Browse files Browse the repository at this point in the history
[Nexus] API related update
  • Loading branch information
AlwinEsch authored Sep 16, 2022
2 parents 82d9468 + fd1e42a commit 26d9d0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/MilkdropXBMC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion visualization.milkdrop/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="visualization.milkdrop"
version="20.1.0"
version="20.2.0"
name="MilkDrop"
provider-name="Team Kodi">
<requires>@ADDON_DEPENDS@</requires>
Expand Down

0 comments on commit 26d9d0d

Please sign in to comment.