- snd_reset cannot be shared.

This commit is contained in:
Christoph Oelckers 2022-10-02 20:22:23 +02:00
parent 00bb258d58
commit 519005ff4d
3 changed files with 11 additions and 5 deletions

View file

@ -1854,11 +1854,6 @@ CCMD(snd_status)
GSnd->PrintStatus(); GSnd->PrintStatus();
} }
CCMD(snd_reset)
{
S_SoundReset();
}
CCMD(snd_listdrivers) CCMD(snd_listdrivers)
{ {
GSnd->PrintDriversList(); GSnd->PrintDriversList();

View file

@ -1427,3 +1427,8 @@ CCMD (loopsound)
} }
} }
CCMD(snd_reset)
{
S_SoundReset();
}

View file

@ -234,6 +234,12 @@ class MoviePlayerJob : SkippableScreenJob
return self; return self;
} }
override void Start()
{
System.StopMusic();
}
static ScreenJob CreateWithSoundInfo(String filename, Array<int> soundinfo, int flags, int frametime, int firstframetime = -1, int lastframetime = -1) static ScreenJob CreateWithSoundInfo(String filename, Array<int> soundinfo, int flags, int frametime, int firstframetime = -1, int lastframetime = -1)
{ {
let movie = MoviePlayer.Create(filename, soundinfo, flags, frametime, firstframetime, lastframetime); let movie = MoviePlayer.Create(filename, soundinfo, flags, frametime, firstframetime, lastframetime);