MCPcopy Create free account
hub / github.com/bbc/audiowaveform / secondsToPixels

Method secondsToPixels

src/GdImageRenderer.cpp:696–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

694//------------------------------------------------------------------------------
695
696int GdImageRenderer::secondsToPixels(const double seconds) const
697{
698 return static_cast<int>(seconds * sample_rate_ / samples_per_pixel_);
699}
700
701//------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected