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

Method PixelsPerSecondScaleFactor

src/WaveformGenerator.cpp:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94//------------------------------------------------------------------------------
95
96PixelsPerSecondScaleFactor::PixelsPerSecondScaleFactor(int pixels_per_second) :
97 pixels_per_second_(pixels_per_second)
98{
99 if (pixels_per_second_ <= 0) {
100 throwError("Invalid pixels per second: must be greater than zero");
101 }
102}
103
104//------------------------------------------------------------------------------
105

Callers

nothing calls this directly

Calls 1

throwErrorFunction · 0.70

Tested by

no test coverage detected