//full screenvideo functions static bool seq_StartFullScreenVideo(const char* videoName, const char* audioName, VIDEO_RESOLUTION resolution) { const char* aAudioName = NULL; int chars_printed; bHoldSeqForAudio = false; chars_printed = ssprintf(aVideoName, "%s%s", aHardPath, videoName); ASSERT(chars_printed < sizeof(aVideoName), "sequence path + name greater than max string"); //set audio path if (audioName != NULL) { sasprintf((char**)&aAudioName, "sequenceaudio/%s", audioName); } cdAudio_Pause(); iV_SetFont(font_regular); iV_SetTextColour(WZCOL_TEXT_BRIGHT); /* We do not want to enter loop_SetVideoPlaybackMode() when we are * doing intelligence videos. */ if (resolution == VIDEO_USER_CHOSEN_RESOLUTION) { //start video mode if (loop_GetVideoMode() == 0) { // check to see if we need to pause, and set font each time cdAudio_Pause(); loop_SetVideoPlaybackMode(); iV_SetFont(font_regular); iV_SetTextColour(WZCOL_TEXT_BRIGHT); } // set the dimensions to show full screen or native or ... seq_SetUserResolution(); } if (!seq_Play(aVideoName)) { seq_Shutdown(); return false; } if (audioName == NULL) { bAudioPlaying = false; } else { // NOT controlled by sliders for now? static const float maxVolume = 1.f; bAudioPlaying = audio_PlayStream(aAudioName, maxVolume, NULL, NULL) ? true : false; ASSERT(bAudioPlaying == true, "unable to initialise sound %s", aAudioName); } return true; }
//full screenvideo functions static bool seq_StartFullScreenVideo(QString videoName, QString audioName, VIDEO_RESOLUTION resolution) { QString aAudioName("sequenceaudio/" + audioName); bHoldSeqForAudio = false; aVideoName = QString("sequences/" + videoName); cdAudio_Pause(); iV_SetFont(font_scaled); iV_SetTextColour(WZCOL_TEXT_BRIGHT); /* We do not want to enter loop_SetVideoPlaybackMode() when we are * doing intelligence videos. */ if (resolution == VIDEO_USER_CHOSEN_RESOLUTION) { //start video mode if (loop_GetVideoMode() == 0) { // check to see if we need to pause, and set font each time cdAudio_Pause(); loop_SetVideoPlaybackMode(); iV_SetFont(font_scaled); iV_SetTextColour(WZCOL_TEXT_BRIGHT); } // set the dimensions to show full screen or native or ... seq_SetUserResolution(); } if (!seq_Play(aVideoName.toUtf8().constData())) { seq_Shutdown(); return false; } if (audioName.isEmpty()) { bAudioPlaying = false; } else { // NOT controlled by sliders for now? static const float maxVolume = 1.f; bAudioPlaying = audio_PlayStream(aAudioName.toUtf8().constData(), maxVolume, NULL, NULL) ? true : false; ASSERT(bAudioPlaying == true, "unable to initialise sound %s", aAudioName.toUtf8().constData()); } return true; }