void GUIInterfaceScreenImpl::DoneLoadingElements()
{

	m_imageset = ImageSetResourceManager::getInstance().getImageSet("VideoIcons");
	if (!m_imageset)
		return;
	HandIcon->SetImage(m_imageset->GetTexture()->GetTexture());
	VideoIcon->SetImage(m_imageset->GetTexture()->GetTexture());
	MicIcon->SetImage(m_imageset->GetTexture()->GetTexture());

	EnableHand(false);
	EnableVideo(false);
	EnableMic(false);
}
示例#2
0
void MPEG::Init(SDL_RWops *mpeg_source, int mpeg_freesrc, bool SDLaudio)
{
    source = mpeg_source;
    freesrc = mpeg_freesrc;
    sdlaudio = SDLaudio;

    /* Create the system that will parse the MPEG stream */
    system = new MPEGsystem(source);

    /* Initialize everything to invalid values for cleanup */
    error = NULL;

    audiostream = videostream = NULL;
    audioaction = NULL;
    videoaction = NULL;
    audio = NULL;
    video = NULL;
    audioaction_enabled = SDLaudio;
    videoaction_enabled = false;
    loop = false;
    pause = false;

    parse_stream_list();

    EnableAudio(audioaction_enabled);
    EnableVideo(videoaction_enabled);

    if ( ! audiostream && ! videostream ) {
      SetError("No audio/video stream found in MPEG");
    }

    if ( system && system->WasError() ) {
      SetError(system->TheError());
    }

    if ( audio && audio->WasError() ) {
      SetError(audio->TheError());
    }

    if ( video && video->WasError() ) {
      SetError(video->TheError());
    }

    if ( WasError() ) {
      SetError(TheError());
    }
}