mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-04 04:48:05 +03:00
Fix Y103 command (play_pcm)
* The parameter is the number of times to loop, e.g. Y103,2: will play the sound twice. This still does not work on Windows because PlaySound() does not support specifying the loop count. * Get AMSE data size from its header. This fixes audio glitch at the end of sounds.
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ public:
|
||||
bool check_music();
|
||||
void get_mark(int* mark, int* loop);
|
||||
|
||||
void play_pcm(int page, bool loop);
|
||||
void play_pcm(int page, int loops);
|
||||
void stop_pcm();
|
||||
bool check_pcm();
|
||||
|
||||
|
||||
@@ -942,7 +942,7 @@ void NACT_Sys3::cmd_y()
|
||||
break;
|
||||
case 103:
|
||||
if(pcm_index < MAX_PCM) {
|
||||
mako->play_pcm(pcm[pcm_index], param ? false : true);
|
||||
mako->play_pcm(pcm[pcm_index], param);
|
||||
}
|
||||
break;
|
||||
case 104:
|
||||
|
||||
Reference in New Issue
Block a user