void ExampleRender() { int x = 20; int y = GetYBelowButtons(); y += 14; PrintMessages(x, y); }
/* * The following function outputs the phrase "Hello World" to screen. It uses * The s3eDebugPrint() function to print the phrase. */ void ExampleRender() { // Print Hello, World // s3eDebugPrint(50, 100, "`x666666Hello, World", 0); int y = GetYBelowButtons(); int x = 10*GetButtonScale(); // s3eDebugPrintf(x, y, 1, "`xee3333Local user: '******'", g_UserName); y += 40; // Print messages from all peers, newest first PrintMessages(x, y); }
void ExampleRender() { const int textHeight = s3eDebugGetInt(S3E_DEBUG_FONT_SIZE_HEIGHT); int y = GetYBelowButtons() + 3 * textHeight; const int x = 10; if (s3eSoundGetInt(S3E_SOUND_STEREO_ENABLED)) { s3eDebugPrintf(x, y, 0, "`x666666Stereo sound output supported and enabled"); } else { s3eDebugPrintf(x, y, 0, "`x666666SStereo sound output disabled or unsupported"); } y += textHeight; y += textHeight; /*if (ogg_hlp->get_nChannels() == 2) s3eDebugPrintf(x, y, 0, "`x666666Input: Stereo"); else s3eDebugPrintf(x, y, 0, "`x666666Input: Mono");*/ /*if (ogg_hlp->get_outputStereoMode() == COggVorbisFileHelper::STEREO_MODE_MONO) { if (!(ogg_hlp->get_nChannels() == 2)) s3eDebugPrintf(x, y, 0, "`x666666Output: Mono"); else s3eDebugPrintf(x, y, 0, "`x666666Output: Mono (left channel of stereo input)"); } else { const char* modeLRString; switch (ogg_hlp->get_outputStereoMode()) { case COggVorbisFileHelper::STEREO_MODE_LEFT: modeLRString = "left only"; break; case COggVorbisFileHelper::STEREO_MODE_RIGHT: modeLRString = "right only"; break; default: modeLRString = "left and right"; break; } s3eDebugPrintf(x, y, 0, "`x666666Output: Stereo (%s)", modeLRString); } y += textHeight; s3eDebugPrintf(x, y, 0, "`x666666Input freq: %ld", ogg_hlp->get_rate()); y += textHeight; s3eDebugPrintf(x, y, 0, "`x666666Output freq: %d", ogg_hlp->get_outputrate()); y += textHeight; s3eDebugPrintf(x, y, 0, "`x666666g_OutputIsStereo: %d", ogg_hlp->get_outputIsStereo()); y += textHeight; s3eDebugPrintf(x, y, 0, "`x666666Buffer: %.2f",ogg_hlp->get_decbuf()*100); y += textHeight; s3eDebugPrintf(x, y, 0, "`x666666Total Samples: %ld", (long)ogg_hlp->get_nsamples()); y += textHeight; s3eDebugPrintf(x, y, 0, "`x666666Total time: %.0f", ogg_hlp->get_time_length()); y += textHeight; s3eDebugPrintf(x, y, 0, "`x666666Current time: %.0f (%0.f%%)", ogg_hlp->get_current_time(),ogg_hlp->get_current_time()/ogg_hlp->get_time_length()*100); y += textHeight; s3eDebugPrintf(x, y, 0, "`x666666Resample: %d - Quality: %d)", g_EnableResample,g_ResampleQuality); y += textHeight; s3eDebugPrintf(x, y, 0, "`x666666Status: %s", ogg_hlp->get_statusstr().c_str()); y += textHeight; y += textHeight; y += textHeight; */ s3eDebugPrintf(x, y, 0, "`x666666channels playing: %i", GetNumOggChannels()); }