Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-2pick
Commits
1375e5f0
Commit
1375e5f0
authored
Nov 27, 2017
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test ikpmp3 static
parent
9d87b675
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
2 deletions
+61
-2
appveyor.yml
appveyor.yml
+6
-1
gframe/config.h
gframe/config.h
+3
-0
gframe/game.cpp
gframe/game.cpp
+6
-0
gframe/premake4.lua
gframe/premake4.lua
+1
-1
premake/ikpmp3/ikpMP3.h
premake/ikpmp3/ikpMP3.h
+12
-0
premake/ikpmp3/ikpmp3.patch
premake/ikpmp3/ikpmp3.patch
+30
-0
premake5.lua
premake5.lua
+3
-0
No files found.
appveyor.yml
View file @
1375e5f0
...
...
@@ -47,13 +47,18 @@ install:
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name -u %irrklang_pro_user% %irrklang_pro% ; exit 0"
-
7z x irrKlang-pro-1.5.0.zip
-
move irrKlang-pro-1.5.0 irrklang
-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name http://www.ambiera.at/downloads/irrKlang-32bit-1.5.0.zip ; exit 0"
-
7z x irrKlang-32bit-1.5.0.zip
-
move irrKlang-1.5.0\plugins\ikpMP3 ikpmp3
# let premake happy
-
xcopy /E premake\* .
# patch irrlicht
-
patch -p0 < irrlicht\irrlicht.patch
-
patch -p0 < ikpmp3\ikpmp3.patch
# premake
-
premake5 vs2015
...
...
gframe/config.h
View file @
1375e5f0
...
...
@@ -49,6 +49,9 @@ inline int _wtoi(const wchar_t * s) {
#include <irrlicht.h>
#include <irrKlang.h>
#ifdef IRRKLANG_STATIC
#include "../ikpMP3/ikpMP3.h"
#endif
#include <GL/gl.h>
#include <GL/glu.h>
#include "CGUITTFont.h"
...
...
gframe/game.cpp
View file @
1375e5f0
...
...
@@ -679,6 +679,12 @@ bool Game::Initialize() {
}
engineSound
=
irrklang
::
createIrrKlangDevice
();
engineMusic
=
irrklang
::
createIrrKlangDevice
();
#ifdef IRRKLANG_STATIC
if
(
engineMusic
)
{
irrklang
::
ikpMP3Init
(
engineSound
);
irrklang
::
ikpMP3Init
(
engineMusic
);
}
#endif
if
(
!
engineSound
||
!
engineMusic
)
{
chkEnableSound
->
setChecked
(
false
);
chkEnableSound
->
setEnabled
(
false
);
...
...
gframe/premake4.lua
View file @
1375e5f0
...
...
@@ -14,7 +14,7 @@ project "ygopro"
includedirs
{
"../irrlicht/include"
,
"../freetype/include"
,
"../event/include"
,
"../sqlite3"
}
if
USE_IRRKLANG
then
defines
{
"YGOPRO_USE_IRRKLANG"
}
links
{
"irrKlang"
}
links
{
"irrKlang"
,
"ikpMP3"
}
includedirs
{
"../irrklang/include"
}
if
IRRKLANG_PRO
then
defines
{
"IRRKLANG_STATIC"
}
...
...
premake/ikpmp3/ikpMP3.h
0 → 100644
View file @
1375e5f0
#include <irrKlang.h>
namespace
irrklang
{
#ifdef WIN32
// Windows version
extern
"C"
__declspec
(
dllexport
)
void
ikpMP3Init
(
ISoundEngine
*
engine
);
#else
// Linux version
extern
"C"
void
ikpMP3Init
(
ISoundEngine
*
engine
);
#endif
}
\ No newline at end of file
premake/ikpmp3/ikpmp3.patch
0 → 100644
View file @
1375e5f0
diff -r ikpmp3/CIrrKlangAudioStreamMP3.cpp ikpmp3-static/CIrrKlangAudioStreamMP3.cpp
10a11
> #include <algorithm>
diff -r ikpmp3/ikpMP3.cpp ikpmp3-static/ikpMP3.cpp
9,14d8
< // this is the only function needed to be implemented for the plugin, it gets
< // called by irrKlang when loaded.
< // In this plugin, we create an audiostream loader class and register
< // it at the engine, but a plugin can do anything.
< // Be sure to name the function 'irrKlangPluginInit' and let the dll start with 'ikp'.
<
17c11
< __declspec(dllexport) void __stdcall irrKlangPluginInit(ISoundEngine* engine, const char* version)
---
> extern "C" __declspec(dllexport) void ikpMP3Init(ISoundEngine* engine)
20c14
< void irrKlangPluginInit(ISoundEngine* engine, const char* version)
---
> extern "C" void ikpMP3Init(ISoundEngine* engine)
23,32d16
< // do some version security check to be sure that this plugin isn't begin used
< // by some newer irrKlang version with changed interfaces which could possibily
< // cause crashes.
<
< if (strcmp(version, IRR_KLANG_VERSION))
< {
< printf("This MP3 plugin only supports irrKlang version %s, mp3 playback disabled.\n", IRR_KLANG_VERSION);
< return;
< }
<
premake5.lua
View file @
1375e5f0
...
...
@@ -70,4 +70,7 @@ solution "ygo"
include
"irrlicht"
include
"lua"
include
"sqlite3"
if
IRRKLANG_PRO
then
include
"ikpmp3"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment