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 5, 2023
1 parent f2b30d9 commit 7e6e190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <algorithm>
#include <HyperSonicDrivers/drivers/PCMDriver.hpp>
#include <cassert>

namespace HyperSonicDrivers::drivers
{
Expand Down Expand Up @@ -135,7 +136,8 @@ namespace HyperSonicDrivers::drivers
m_PCMStreams[i] = nullptr;
}
}
//assert(m_PCMStreams_channels.size() == 0);

assert(m_PCMStreams_channels.size() == 0);
}

inline bool PCMDriver::isPCMStreamPlaying_(const std::shared_ptr<audio::streams::PCMStream>& stream) noexcept
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace HyperSonicDrivers::drivers
private:
std::shared_ptr<audio::IMixer> m_mixer;
std::vector<std::shared_ptr<audio::streams::PCMStream>> m_PCMStreams; // TODO: is this still required?
std::map<std::shared_ptr<audio::streams::PCMStream>, int> m_PCMStreams_channels;
std::map<std::shared_ptr<audio::streams::PCMStream>, uint8_t> m_PCMStreams_channels;

void releaseEndedStreams_() noexcept;

Expand Down

0 comments on commit 7e6e190

Please sign in to comment.