Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
List
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
YGOPRO-520DIY
ygopro
Commits
77c9b43b
Commit
77c9b43b
authored
Mar 31, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into server
parents
b7c0df7c
8e548735
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
gframe/sound_manager.cpp
gframe/sound_manager.cpp
+10
-4
No files found.
gframe/sound_manager.cpp
View file @
77c9b43b
...
...
@@ -156,7 +156,7 @@ void SoundManager::PlaySoundEffect(int sound) {
break
;
}
case
SOUND_RECOVER
:
{
strcpy
(
soundName
,
"
recover
"
);
strcpy
(
soundName
,
"
gainlp
"
);
break
;
}
case
SOUND_COUNTER_ADD
:
{
...
...
@@ -168,11 +168,11 @@ void SoundManager::PlaySoundEffect(int sound) {
break
;
}
case
SOUND_COIN
:
{
strcpy
(
soundName
,
"coin"
);
strcpy
(
soundName
,
"coin
flip
"
);
break
;
}
case
SOUND_DICE
:
{
strcpy
(
soundName
,
"dice"
);
strcpy
(
soundName
,
"dice
roll
"
);
break
;
}
case
SOUND_NEXT_TURN
:
{
...
...
@@ -212,7 +212,7 @@ void SoundManager::PlaySoundEffect(int sound) {
break
;
}
case
SOUND_CHAT
:
{
strcpy
(
soundName
,
"chat"
);
strcpy
(
soundName
,
"chat
message
"
);
break
;
}
default:
...
...
@@ -270,7 +270,13 @@ void SoundManager::PlayMusic(char* song, bool loop) {
StopBGM
();
#ifdef YGOPRO_USE_MINIAUDIO
strcpy
(
currentPlayingMusic
,
song
);
#ifdef _WIN32
wchar_t
song_w
[
1024
];
BufferIO
::
DecodeUTF8
(
song
,
song_w
);
ma_sound_init_from_file_w
(
&
engineMusic
,
song_w
,
MA_SOUND_FLAG_ASYNC
|
MA_SOUND_FLAG_STREAM
,
nullptr
,
nullptr
,
&
soundBGM
);
#else
ma_sound_init_from_file
(
&
engineMusic
,
song
,
MA_SOUND_FLAG_ASYNC
|
MA_SOUND_FLAG_STREAM
,
nullptr
,
nullptr
,
&
soundBGM
);
#endif
ma_sound_set_looping
(
&
soundBGM
,
loop
);
ma_sound_start
(
&
soundBGM
);
#endif
...
...
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