Skip to content

Commit

Permalink
sonarcloud code rev
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffaello committed Nov 12, 2023
1 parent c2d8d6f commit b0da308
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ namespace HyperSonicDrivers::audio
virtual uint32_t getRate() const = 0;
virtual bool endOfData() const = 0;
virtual bool isEnded() const { return endOfData(); }
//virtual void forward(const uint32_t ms) = 0;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace HyperSonicDrivers::audio::streams
bool endOfData() const override;

void forward(const uint32_t bytes) noexcept;

std::shared_ptr<PCMSound> getSound() const noexcept;
private:
std::shared_ptr<PCMSound> m_sound;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespace HyperSonicDrivers::drivers
releaseStreams_();
}

void PCMDriver::forward(const uint32_t ms) noexcept
void PCMDriver::forward(const uint32_t ms) const noexcept
{
for (const auto& [stream, _] : m_PCMStreams_channels)
stream->forward(utils::ms_toPos(ms, stream->getSound()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace HyperSonicDrivers::drivers
void stop(const std::shared_ptr<audio::PCMSound>& sound, const bool releaseEndedStreams = true);
void stop() noexcept;

void forward(const uint32_t ms) noexcept;
void forward(const uint32_t ms) const noexcept;

const uint8_t max_streams;
private:
Expand Down

0 comments on commit b0da308

Please sign in to comment.