mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-26 17:46:08 -05:00
Merge pull request #588 from FunkinCrew/ninjamuffin99/funk-244-preview-songs-on-freeplay-should-last-longer
make songs last longer on freeplay
This commit is contained in:
commit
c2cc73077f
1 changed files with 3 additions and 3 deletions
|
@ -104,6 +104,7 @@ class FreeplayState extends MusicBeatSubState
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* For the audio preview, the duration of the fade-out effect.
|
* For the audio preview, the duration of the fade-out effect.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
public static final FADE_OUT_DURATION:Float = 0.25;
|
public static final FADE_OUT_DURATION:Float = 0.25;
|
||||||
|
|
||||||
|
@ -1690,7 +1691,6 @@ class FreeplayState extends MusicBeatSubState
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var potentiallyErect:String = (currentDifficulty == "erect") || (currentDifficulty == "nightmare") ? "-erect" : "";
|
var potentiallyErect:String = (currentDifficulty == "erect") || (currentDifficulty == "nightmare") ? "-erect" : "";
|
||||||
// TODO: Stream the instrumental of the selected song?
|
|
||||||
FunkinSound.playMusic(daSongCapsule.songData.songId,
|
FunkinSound.playMusic(daSongCapsule.songData.songId,
|
||||||
{
|
{
|
||||||
startingVolume: 0.0,
|
startingVolume: 0.0,
|
||||||
|
@ -1701,8 +1701,8 @@ class FreeplayState extends MusicBeatSubState
|
||||||
partialParams:
|
partialParams:
|
||||||
{
|
{
|
||||||
loadPartial: true,
|
loadPartial: true,
|
||||||
start: 0,
|
start: 0.05,
|
||||||
end: 0.1
|
end: 0.25
|
||||||
},
|
},
|
||||||
onLoad: function() {
|
onLoad: function() {
|
||||||
FlxG.sound.music.fadeIn(2, 0, 0.4);
|
FlxG.sound.music.fadeIn(2, 0, 0.4);
|
||||||
|
|
Loading…
Reference in a new issue