Reduce indirection to sample buffer from Sample

This commit is contained in:
sakertooth
2023-08-27 20:43:00 -04:00
parent 25bb7abbb7
commit aca875b0e4
6 changed files with 39 additions and 13 deletions

View File

@@ -97,9 +97,15 @@ public:
auto play(sampleFrame* dst, PlaybackState* state, int numFrames, float desiredFrequency = DefaultBaseFreq,
Loop loopMode = Loop::Off) const -> bool;
auto visualize(QPainter& p, const QRect& dr, int fromFrame = 0, int toFrame = 0) const -> void;
auto sampleDuration() const -> int;
auto playbackSize() const -> int;
auto visualize(QPainter& p, const QRect& dr, int fromFrame = 0, int toFrame = 0) const -> void;
auto sampleDuration() const -> int;
auto sampleFile() const -> QString;
auto sampleRate() const -> int;
auto sampleSize() const -> int;
auto toBase64() const -> QString;
auto buffer() const -> std::shared_ptr<const SampleBuffer2>;
auto startFrame() const -> int;