mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-15 14:27:29 +00:00
Fixed NTSC phase.
This commit is contained in:
@@ -71,7 +71,7 @@ void Machine::setup_output(float aspect_ratio)
|
|||||||
"uint y = c & 14u;"
|
"uint y = c & 14u;"
|
||||||
"uint iPhase = (c >> 4);"
|
"uint iPhase = (c >> 4);"
|
||||||
|
|
||||||
"float phaseOffset = 6.283185308 * float(iPhase - 1u) / 13.0;"
|
"float phaseOffset = 6.283185308 * float(iPhase) / 13.0 + 5.074880441076923;"
|
||||||
"return mix(float(y) / 14.0, step(1, iPhase) * cos(phase + phaseOffset), amplitude);"
|
"return mix(float(y) / 14.0, step(1, iPhase) * cos(phase + phaseOffset), amplitude);"
|
||||||
"}");
|
"}");
|
||||||
speaker_->set_input_rate((float)(get_clock_rate() / 38.0));
|
speaker_->set_input_rate((float)(get_clock_rate() / 38.0));
|
||||||
|
Reference in New Issue
Block a user