MCPcopy Create free account
hub / github.com/TASEmulators/fceux / triangleChanged

Method triangleChanged

src/drivers/Qt/ConsoleSoundConf.cpp:438–453  ·  view source on GitHub ↗

----------------------------------------------------

Source from the content-addressed store, hash-verified

436}
437//----------------------------------------------------
438void ConsoleSndConfDialog_t::triangleChanged(int value)
439{
440 char stmp[32];
441
442 sprintf(stmp, "%i", value);
443
444 triLbl->setText(stmp);
445
446 g_config->setOption("SDL.Sound.TriangleVolume", value);
447
448 if (FCEU_WRAPPER_TRYLOCK(1000))
449 {
450 FCEUI_SetTriangleVolume(value);
451 FCEU_WRAPPER_UNLOCK();
452 }
453}
454//----------------------------------------------------
455void ConsoleSndConfDialog_t::square1Changed(int value)
456{

Callers

nothing calls this directly

Calls 3

FCEUI_SetTriangleVolumeFunction · 0.85
setTextMethod · 0.80
setOptionMethod · 0.80

Tested by

no test coverage detected