Skip to content

Commit

Permalink
[共通] オーディオの同時再生数 16 → 72 #1123
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Dec 20, 2023
1 parent ce9bd82 commit d6bff59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Siv3D/src/Siv3D/Audio/CAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ namespace s3d
m_soloud->getBackendBufferSize()));

m_soloud->setVisualizationEnable(true);
m_soloud->setMaxActiveVoiceCount(MaxActiveVoiceCount);
}

// null Audio を管理に登録
Expand Down
2 changes: 2 additions & 0 deletions Siv3D/src/Siv3D/Audio/CAudio.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ namespace s3d

private:

static constexpr uint32 MaxActiveVoiceCount = 72; // hard limit: 1024

std::unique_ptr<SoLoud::Soloud> m_soloud;

std::array<std::unique_ptr<AudioBus>, Audio::MaxBusCount> m_buses;
Expand Down

0 comments on commit d6bff59

Please sign in to comment.