|
@@ -424,12 +424,19 @@ int main(int argc, char * argv[])
|
|
|
void playIntro()
|
|
|
{
|
|
|
auto audioData = CCS->videoh->getAudio(VideoPath::builtin("3DOLOGO.SMK"));
|
|
|
- CCS->soundh->playSound(audioData);
|
|
|
+ int sound = CCS->soundh->playSound(audioData);
|
|
|
if(CCS->videoh->openAndPlayVideo(VideoPath::builtin("3DOLOGO.SMK"), 0, 1, true, true))
|
|
|
{
|
|
|
+ audioData = CCS->videoh->getAudio(VideoPath::builtin("NWCLOGO.SMK"));
|
|
|
+ sound = CCS->soundh->playSound(audioData);
|
|
|
if (CCS->videoh->openAndPlayVideo(VideoPath::builtin("NWCLOGO.SMK"), 0, 1, true, true))
|
|
|
+ {
|
|
|
+ audioData = CCS->videoh->getAudio(VideoPath::builtin("H3INTRO.SMK"));
|
|
|
+ sound = CCS->soundh->playSound(audioData);
|
|
|
CCS->videoh->openAndPlayVideo(VideoPath::builtin("H3INTRO.SMK"), 0, 1, true, true);
|
|
|
+ }
|
|
|
}
|
|
|
+ CCS->soundh->stopSound(sound);
|
|
|
}
|
|
|
|
|
|
static void mainLoop()
|