Skip to content

Commit

Permalink
Merge pull request #15 from AlwinEsch/Matrix-change
Browse files Browse the repository at this point in the history
[Matrix] Add screenshots and fanart, change settings to new style and update nasm
  • Loading branch information
AlwinEsch authored Sep 24, 2019
2 parents f71117e + b9d4ecf commit 44e6f15
Show file tree
Hide file tree
Showing 19 changed files with 245 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From: Alwin Esch <[email protected]>
Date: Thu, 19 Sep 2019 19:29:39 +0100
Subject: [PATCH] Set EXTERNAL_DEPENDENCIES to 0, needed to prevent Perl

Perl not available on build system, but test without was OK.
---
Mkfiles/msvc.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mkfiles/msvc.mak b/Mkfiles/msvc.mak
index 4112c7f..22da9c6 100644
--- a/Mkfiles/msvc.mak
+++ b/Mkfiles/msvc.mak
@@ -364,7 +364,7 @@ everything: all docs nsis
# Does this version of this file have external dependencies? This definition
# will be automatically updated by mkdep.pl as needed.
#
-EXTERNAL_DEPENDENCIES = 1
+EXTERNAL_DEPENDENCIES = 0

#
# Generate dependency information for this Makefile only.
--
2.19.2.windows.1

16 changes: 12 additions & 4 deletions depends/windows/nasmw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
cmake_minimum_required(VERSION 3.5)
project(nasmw)

install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
)
include(ExternalProject)

externalproject_add(nasmw
SOURCE_DIR ${PROJECT_SOURCE_DIR}
BINARY_DIR ${PROJECT_SOURCE_DIR}
INSTALL_DIR ${PROJECT_SOURCE_DIR}
CONFIGURE_COMMAND ""
BUILD_COMMAND nmake /f Mkfiles/msvc.mak
INSTALL_COMMAND "")

install(PROGRAMS nasm.exe DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
RENAME nasmw.exe)
2 changes: 1 addition & 1 deletion depends/windows/nasmw/nasmw.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
91b9f784b1286e3de73dabfdc7466c198b96fef7080e00710411119959935809
b34bae344a3f2ed93b2ca7bf25f1ed3fb12da89eeda6096e3551fd66adeae9fc
2 changes: 1 addition & 1 deletion depends/windows/nasmw/nasmw.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nasmw http://www.nasm.us/pub/nasm/releasebuilds/2.12.02/win32/nasm-2.12.02-win32.zip
nasmw http://mirrors.kodi.tv/build-deps/sources/nasm-2.14.02.tar.gz
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From: Alwin Esch <[email protected]>
Date: Thu, 19 Sep 2019 19:29:39 +0100
Subject: [PATCH] Set EXTERNAL_DEPENDENCIES to 0, needed to prevent Perl

Perl not available on build system, but test without was OK.
---
Mkfiles/msvc.mak | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Mkfiles/msvc.mak b/Mkfiles/msvc.mak
index 4112c7f..22da9c6 100644
--- a/Mkfiles/msvc.mak
+++ b/Mkfiles/msvc.mak
@@ -364,7 +364,7 @@ everything: all docs nsis
# Does this version of this file have external dependencies? This definition
# will be automatically updated by mkdep.pl as needed.
#
-EXTERNAL_DEPENDENCIES = 1
+EXTERNAL_DEPENDENCIES = 0

#
# Generate dependency information for this Makefile only.
--
2.19.2.windows.1

27 changes: 27 additions & 0 deletions depends/windowsstore/nasmw/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cmake_minimum_required(VERSION 3.5)
project(nasmw)

include(ExternalProject)

# Prevent this on UWP ARM build
if(NOT CMAKE_GENERATOR MATCHES ARM)
externalproject_add(nasmw
SOURCE_DIR ${PROJECT_SOURCE_DIR}
BINARY_DIR ${PROJECT_SOURCE_DIR}
INSTALL_DIR ${PROJECT_SOURCE_DIR}
CONFIGURE_COMMAND ""
BUILD_COMMAND nmake /f Mkfiles/msvc.mak
INSTALL_COMMAND "")
else()
externalproject_add(nasmw
SOURCE_DIR ${PROJECT_SOURCE_DIR}
BINARY_DIR ${PROJECT_SOURCE_DIR}
INSTALL_DIR ${PROJECT_SOURCE_DIR}
CONFIGURE_COMMAND ""
BUILD_COMMAND cmake -E echo "NASM not used on UWP ARM"
INSTALL_COMMAND "")
endif()

install(PROGRAMS nasm.exe DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
RENAME nasmw.exe
OPTIONAL)
1 change: 1 addition & 0 deletions depends/windowsstore/nasmw/nasmw.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b34bae344a3f2ed93b2ca7bf25f1ed3fb12da89eeda6096e3551fd66adeae9fc
1 change: 1 addition & 0 deletions depends/windowsstore/nasmw/nasmw.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nasmw http://mirrors.kodi.tv/build-deps/sources/nasm-2.14.02.tar.gz
24 changes: 12 additions & 12 deletions src/MilkdropXBMC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ ADDON_STATUS CVisualizationMilkdrop::Create()
g_plugin->PluginPreInitialize(0, 0);
}

g_plugin->m_fBlendTimeAuto = kodi::GetSettingFloat("Automatic Blend Time") + 1;
g_plugin->m_fTimeBetweenPresets = kodi::GetSettingFloat("Time Between Presets") * 5 + 5;
g_plugin->m_fTimeBetweenPresetsRand = kodi::GetSettingFloat("Additional Random Time") * 5 + 5;
g_plugin->m_fBlendTimeAuto = kodi::GetSettingFloat("Automatic Blend Time");
g_plugin->m_fTimeBetweenPresets = kodi::GetSettingFloat("Time Between Presets");
g_plugin->m_fTimeBetweenPresetsRand = kodi::GetSettingFloat("Additional Random Time");
g_plugin->m_bHardCutsDisabled = !kodi::GetSettingBoolean("Enable Hard Cuts");
g_plugin->m_fHardCutLoudnessThresh = kodi::GetSettingFloat("Loudness Threshold For Hard Cuts") / 5.0f + 1.25f;
g_plugin->m_fHardCutHalflife = kodi::GetSettingFloat("Average Time Between Hard Cuts") * 5 + 5;
g_plugin->m_max_fps_fs = kodi::GetSettingFloat("Maximum Refresh Rate") * 5 + 20;
g_plugin->m_fHardCutLoudnessThresh = kodi::GetSettingFloat("Loudness Threshold For Hard Cuts");
g_plugin->m_fHardCutHalflife = kodi::GetSettingFloat("Average Time Between Hard Cuts");
g_plugin->m_max_fps_fs = kodi::GetSettingFloat("Maximum Refresh Rate");
g_plugin->m_bAlways3D = kodi::GetSettingBoolean("Enable Stereo 3d");
lastLockedStatus = kodi::GetSettingBoolean("lastlockedstatus");
lastPresetIndx = kodi::GetSettingInt("lastpresetidx");
Expand Down Expand Up @@ -311,19 +311,19 @@ ADDON_STATUS CVisualizationMilkdrop::SetSetting(const std::string& settingName,
return ADDON_STATUS_UNKNOWN;

if (settingName == "Automatic Blend Time")
g_plugin->m_fBlendTimeAuto = (float)(settingValue.GetInt() + 1);
g_plugin->m_fBlendTimeAuto = settingValue.GetFloat();
else if (settingName == "Time Between Presets")
g_plugin->m_fTimeBetweenPresets = (float)(settingValue.GetInt() * 5 + 5);
g_plugin->m_fTimeBetweenPresets = settingValue.GetFloat();
else if (settingName == "Additional Random Time")
g_plugin->m_fTimeBetweenPresetsRand = (float)(settingValue.GetInt() * 5 + 5);
g_plugin->m_fTimeBetweenPresetsRand = settingValue.GetFloat();
else if (settingName == "Enable Hard Cuts")
g_plugin->m_bHardCutsDisabled = !settingValue.GetBoolean();
else if (settingName == "Loudness Threshold For Hard Cuts")
g_plugin->m_fHardCutLoudnessThresh = (float)(settingValue.GetInt() / 5.0f + 1.25f);
g_plugin->m_fHardCutLoudnessThresh = settingValue.GetFloat();
else if (settingName == "Average Time Between Hard Cuts")
g_plugin->m_fHardCutHalflife = (float)settingValue.GetInt() * 5 + 5;
g_plugin->m_fHardCutHalflife = settingValue.GetFloat();
else if (settingName == "Maximum Refresh Rate")
g_plugin->m_max_fps_fs = settingValue.GetInt() * 5 + 20;
g_plugin->m_max_fps_fs = settingValue.GetInt();
else if (settingName == "Enable Stereo 3d")
g_plugin->m_bAlways3D = settingValue.GetBoolean();
else if (settingName == "lastlockedstatus")
Expand Down
13 changes: 12 additions & 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="2.1.0"
version="2.1.1"
name="MilkDrop"
provider-name="Team Kodi">
<requires>@ADDON_DEPENDS@</requires>
Expand Down Expand Up @@ -113,5 +113,16 @@
<description lang="zh_CN">MilkDrop 是来自于 Winamp 音乐播放器的可视化效果插件。在你听音乐时,MilkDrop 通过节拍检测触发的无数迷幻的效果,带你与声波一起飞翔,给你带来丰富的音乐和视觉旅程。</description>
<description lang="zh_TW">MilkDrop是來自於Winamp音樂播放器的視覺效果插件。在您在聽音樂時,MilkDrop通過節奏偵測觸發的無數夢幻的效果,帶您穿越聆聽中的音樂饗宴,也給您帶來豐富的聲音和視覺效果的奇幻旅程。</description>
<platform>@PLATFORM@</platform>
<assets>
<icon>resources/icon.png</icon>
<fanart>resources/fanart.jpg</fanart>
<screenshot>resources/screenshot-01.jpg</screenshot>
<screenshot>resources/fanart.jpg</screenshot>
<screenshot>resources/screenshot-02.jpg</screenshot>
<screenshot>resources/screenshot-03.jpg</screenshot>
<screenshot>resources/screenshot-04.jpg</screenshot>
<screenshot>resources/screenshot-05.jpg</screenshot>
<screenshot>resources/screenshot-06.jpg</screenshot>
</assets>
</extension>
</addon>
Binary file added visualization.milkdrop/resources/fanart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
144 changes: 128 additions & 16 deletions visualization.milkdrop/resources/settings.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,129 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings>
<setting id="lastpresetfolder" type="text" default="" visible="false" />
<setting id="lastpresetidx" type="number" default="0" visible="false" />
<setting id="lastlockedstatus" type="bool" default="false" visible="false" />
<setting id="Preset Pack" type="enum" label="30009" lvalues="30020|30021|30022" default="0"/>
<setting id="User Preset Folder" type="folder" visible="eq(-1,2)" source="" label="30010" default=""/>
<setting id="Preset Shuffle Mode" type="bool" label="30011" default="true"/>
<setting id="Automatic Blend Time" type="rangeofnum" label="30000" rangestart="1" rangeend="10" elements="10" valueformat="30050" default="0"/>
<setting id="Time Between Presets" type="rangeofnum" label="30001" rangestart="5" rangeend="50" elements="10" valueformat="30050" default="0"/>
<setting id="Additional Random Time" type="rangeofnum" label="30002" rangestart="5" rangeend="50" elements="10" valueformat="30050" default="0"/>
<setting id="Enable Hard Cuts" type="bool" label="30004" default="false"/>
<setting id="Loudness Threshold For Hard Cuts" type="rangeofnum" enable="eq(-1,true)" label="30005" rangestart="0" rangeend="100" elements="11" valueformat="30051" default="0"/>
<setting id="Average Time Between Hard Cuts" type="rangeofnum" enable="eq(-2,true)" label="30006" rangestart="5" rangeend="120" elements="24" valueformat="30050" default="0"/>
<setting id="Maximum Refresh Rate" type="rangeofnum" label="30007" rangestart="20" rangeend="60" elements="9" valueformat="30052" default="6"/>
<setting id="Enable Stereo 3d" type="bool" label="30008" default="false"/>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings version="1">
<section id="addon">
<category id="main" label="128">
<group id="0">
<setting id="lastpresetfolder" type="string">
<visible>false</visible>
<default></default>
</setting>
<setting id="lastpresetidx" type="integer">
<visible>false</visible>
<default>0</default>
</setting>
<setting id="lastlockedstatus" type="boolean">
<visible>false</visible>
<default>false</default>
</setting>
<setting id="Preset Pack" type="integer" label="30009" help="0">
<default>0</default>
<constraints>
<options>
<option label="30020">0</option>
<!-- WA51 Presets -->
<option label="30021">1</option>
<!-- Winamp Presets -->
<option label="30022">2</option>
<!-- User Defined Preset Folder -->
</options>
</constraints>
<control type="spinner" format="string" />
</setting>
<setting id="User Preset Folder" type="path" label="30010" help="0">
<default></default>
<dependencies>
<dependency type="visible" setting="Preset Pack" operator="is">2</dependency>
</dependencies>
<constraints>
<allowempty>true</allowempty>
</constraints>
<control type="button" format="path" />
</setting>
<setting id="Preset Shuffle Mode" type="boolean" label="30011" help="0">
<default>true</default>
<control type="toggle" />
</setting>
<setting id="Automatic Blend Time" type="number" label="30000" help="0">
<default>1.0</default>
<constraints>
<minimum>1.0</minimum>
<step>1.0</step>
<maximum>10.0</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>30050</formatlabel>
</control>
</setting>
<setting id="Time Between Presets" type="number" label="30001" help="0">
<default>5.0</default>
<constraints>
<minimum>5.0</minimum>
<step>0.5</step>
<maximum>10.0</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>30050</formatlabel>
</control>
</setting>
<setting id="Additional Random Time" type="number" label="30002" help="0">
<default>5.0</default>
<constraints>
<minimum>5.0</minimum>
<step>0.5</step>
<maximum>10.0</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>30050</formatlabel>
</control>
</setting>
<setting id="Enable Hard Cuts" type="boolean" label="30004" help="0">
<default>false</default>
<control type="toggle" />
</setting>
<setting id="Loudness Threshold For Hard Cuts" type="number" label="30005" help="0">
<default>0.0</default>
<constraints>
<minimum>0.0</minimum>
<step>10.0</step>
<maximum>100.0</maximum>
</constraints>
<dependencies>
<dependency type="enable" setting="Enable Hard Cuts" operator="is">true</dependency>
</dependencies>
<control type="spinner" format="string">
<formatlabel>30051</formatlabel>
</control>
</setting>
<setting id="Average Time Between Hard Cuts" type="number" label="30006" help="0">
<default>0.0</default>
<constraints>
<minimum>5.0</minimum>
<step>5.0</step>
<maximum>120.0</maximum>
</constraints>
<dependencies>
<dependency type="enable" setting="Enable Hard Cuts" operator="is">true</dependency>
</dependencies>
<control type="spinner" format="string">
<formatlabel>30050</formatlabel>
</control>
</setting>
<setting id="Maximum Refresh Rate" type="number" label="30007" help="0">
<default>30.0</default>
<constraints>
<minimum>20.0</minimum>
<step>5.0</step>
<maximum>60.0</maximum>
</constraints>
<control type="spinner" format="string">
<formatlabel>30052</formatlabel>
</control>
</setting>
<setting id="Enable Stereo 3d" type="boolean" label="30008" help="0">
<default>false</default>
<control type="toggle" />
</setting>
</group>
</category>
</section>
</settings>

0 comments on commit 44e6f15

Please sign in to comment.