mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-25 16:24:40 +00:00
A few bug fixes related to vocal tracks
This commit is contained in:
parent
2af4a51b15
commit
dc932eb8d7
4
hmm.json
4
hmm.json
|
@ -89,7 +89,7 @@
|
|||
{
|
||||
"name": "json2object",
|
||||
"type": "haxelib",
|
||||
"version": null
|
||||
"version": "3.11.0"
|
||||
},
|
||||
{
|
||||
"name": "lime",
|
||||
|
@ -118,4 +118,4 @@
|
|||
"version": "0.2.2"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -79,6 +79,10 @@ class SoundGroup extends FlxTypedGroup<FlxSound>
|
|||
result.pause();
|
||||
result.time = this.time;
|
||||
|
||||
result.onComplete = function() {
|
||||
this.onComplete();
|
||||
}
|
||||
|
||||
// Apply parameters to the new sound.
|
||||
result.pitch = this.pitch;
|
||||
result.volume = this.volume;
|
||||
|
@ -86,6 +90,8 @@ class SoundGroup extends FlxTypedGroup<FlxSound>
|
|||
return result;
|
||||
}
|
||||
|
||||
public dynamic function onComplete():Void {}
|
||||
|
||||
/**
|
||||
* Pause all the sounds in the group.
|
||||
*/
|
||||
|
|
|
@ -1093,7 +1093,7 @@ class PlayState extends MusicBeatState
|
|||
|
||||
// TODO: Fix grouped vocals
|
||||
vocals = currentChart.buildVocals();
|
||||
vocals.members[0].onComplete = function() {
|
||||
vocals.onComplete = function() {
|
||||
vocalsFinished = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ class SongDifficulty
|
|||
|
||||
public inline function playInst(volume:Float = 1.0, looped:Bool = false):Void
|
||||
{
|
||||
var suffix:String = variation == null ? null : '-$variation';
|
||||
var suffix:String = (variation ?? '') != '' ? '-$variation' : '';
|
||||
FlxG.sound.playMusic(Paths.inst(this.song.songId, suffix), volume, looped);
|
||||
}
|
||||
|
||||
|
@ -336,7 +336,7 @@ class SongDifficulty
|
|||
return [];
|
||||
}
|
||||
|
||||
var suffix:String = variation != null ? '-$variation' : '';
|
||||
var suffix:String = (variation ?? '') != '' ? '-$variation' : '';
|
||||
|
||||
// Automatically resolve voices by removing suffixes.
|
||||
// For example, if `Voices-bf-car.ogg` does not exist, check for `Voices-bf.ogg`.
|
||||
|
|
Loading…
Reference in a new issue