Skip to content

Commit

Permalink
Fixed a clang warning anout braces in a complex initialisator GrandOr…
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 committed Nov 29, 2024
1 parent 6eeb863 commit eb9f0e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grandorgue/sound/GOSoundRecorder.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright 2006 Milan Digital Audio LLC
* Copyright 2009-2023 GrandOrgue contributors (see AUTHORS)
* Copyright 2009-2024 GrandOrgue contributors (see AUTHORS)
* License GPL-2.0 or later
* (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).
*/
Expand Down Expand Up @@ -51,7 +51,7 @@ struct_WAVE GOSoundRecorder::generateHeader(unsigned datasize) {
{WAVE_TYPE_RIFF, datasize + 36},
WAVE_TYPE_WAVE,
{WAVE_TYPE_FMT, 16},
{m_BytesPerSample == 4 ? 3 : 1,
{(m_BytesPerSample == 4 ? 3 : 1),
m_Channels,
m_SampleRate,
m_SampleRate * m_BytesPerSample * m_Channels,
Expand Down

0 comments on commit eb9f0e6

Please sign in to comment.