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
3e5b3dc5
Commit
3e5b3dc5
authored
Dec 16, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hard_def
parent
e5375939
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
gframe/sound_manager.cpp
gframe/sound_manager.cpp
+4
-0
No files found.
gframe/sound_manager.cpp
View file @
3e5b3dc5
...
@@ -24,6 +24,7 @@ bool SoundManager::Init() {
...
@@ -24,6 +24,7 @@ bool SoundManager::Init() {
return
false
;
return
false
;
}
}
void
SoundManager
::
RefreshBGMList
()
{
void
SoundManager
::
RefreshBGMList
()
{
#ifdef YGOPRO_USE_IRRKLANG
RefershBGMDir
(
L""
,
BGM_DUEL
);
RefershBGMDir
(
L""
,
BGM_DUEL
);
RefershBGMDir
(
L"duel/"
,
BGM_DUEL
);
RefershBGMDir
(
L"duel/"
,
BGM_DUEL
);
RefershBGMDir
(
L"menu/"
,
BGM_MENU
);
RefershBGMDir
(
L"menu/"
,
BGM_MENU
);
...
@@ -32,8 +33,10 @@ void SoundManager::RefreshBGMList() {
...
@@ -32,8 +33,10 @@ void SoundManager::RefreshBGMList() {
RefershBGMDir
(
L"disadvantage/"
,
BGM_DISADVANTAGE
);
RefershBGMDir
(
L"disadvantage/"
,
BGM_DISADVANTAGE
);
RefershBGMDir
(
L"win/"
,
BGM_WIN
);
RefershBGMDir
(
L"win/"
,
BGM_WIN
);
RefershBGMDir
(
L"lose/"
,
BGM_LOSE
);
RefershBGMDir
(
L"lose/"
,
BGM_LOSE
);
#endif
}
}
void
SoundManager
::
RefershBGMDir
(
std
::
wstring
path
,
int
scene
)
{
void
SoundManager
::
RefershBGMDir
(
std
::
wstring
path
,
int
scene
)
{
#ifdef YGOPRO_USE_IRRKLANG
#ifdef _WIN32
#ifdef _WIN32
WIN32_FIND_DATAW
fdataw
;
WIN32_FIND_DATAW
fdataw
;
std
::
wstring
search
=
L"./sound/BGM/"
+
path
+
L"*.mp3"
;
std
::
wstring
search
=
L"./sound/BGM/"
+
path
+
L"*.mp3"
;
...
@@ -63,6 +66,7 @@ void SoundManager::RefershBGMDir(std::wstring path, int scene) {
...
@@ -63,6 +66,7 @@ void SoundManager::RefershBGMDir(std::wstring path, int scene) {
}
}
closedir
(
dir
);
closedir
(
dir
);
#endif
#endif
#endif
}
}
void
SoundManager
::
PlaySoundEffect
(
int
sound
)
{
void
SoundManager
::
PlaySoundEffect
(
int
sound
)
{
#ifdef YGOPRO_USE_IRRKLANG
#ifdef YGOPRO_USE_IRRKLANG
...
...
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