Skip to content

Commit

Permalink
Merge pull request #48 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 d7138be + 8091efc commit fa4d7bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Milkdrop2XBMC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CVisualizationMilkdrop2

ADDON_STATUS Create() override;
void Stop() override;
void AudioData(const float* audioData, int audioDataLength, float* freqData, int freqDataLength) override;
void AudioData(const float* audioData, size_t audioDataLength) override;
void Render() override;
bool GetPresets(std::vector<std::string>& presets) override;
int GetActivePreset() override;
Expand All @@ -42,7 +42,7 @@ class CVisualizationMilkdrop2

ADDON_STATUS CVisualizationMilkdrop2::Create()
{
swprintf(g_plugin.m_szPluginsDirPath, L"%hs\\resources\\", Presets().c_str());
swprintf(g_plugin.m_szPluginsDirPath, L"%hs\\resources\\", kodi::addon::GetAddonPath().c_str());

if (FALSE == g_plugin.PluginPreInitialize(0, 0))
return ADDON_STATUS_UNKNOWN;
Expand All @@ -66,7 +66,7 @@ void CVisualizationMilkdrop2::Stop()

unsigned char waves[2][576];

void CVisualizationMilkdrop2::AudioData(const float* pAudioData, int iAudioDataLength, float *pFreqData, int iFreqDataLength)
void CVisualizationMilkdrop2::AudioData(const float* pAudioData, size_t iAudioDataLength)
{
int ipos=0;
while (ipos < 576)
Expand Down
2 changes: 1 addition & 1 deletion visualization.milkdrop2/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.milkdrop2"
version="20.1.0"
version="20.2.0"
name="MilkDrop 2"
provider-name="Ryan Geiss, ported by MrC, DX11 by afedchin">
<requires>@ADDON_DEPENDS@</requires>
Expand Down

0 comments on commit fa4d7bc

Please sign in to comment.