Skip to content

Commit

Permalink
fix clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
phandasm committed Jun 22, 2023
1 parent 32fca3e commit 124ac52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ void WAVSource::get_settings(obs_data_t *settings)
m_volume_target = (float)obs_data_get_int(settings, P_VOLUME_TARGET);
m_max_gain = (float)obs_data_get_int(settings, P_MAX_GAIN);

m_color_base = { (uint8_t)color_base / 255.0f, (uint8_t)(color_base >> 8) / 255.0f, (uint8_t)(color_base >> 16) / 255.0f, (uint8_t)(color_base >> 24) / 255.0f };
m_color_crest = { (uint8_t)color_crest / 255.0f, (uint8_t)(color_crest >> 8) / 255.0f, (uint8_t)(color_crest >> 16) / 255.0f, (uint8_t)(color_crest >> 24) / 255.0f };
m_color_base = { {(uint8_t)color_base / 255.0f, (uint8_t)(color_base >> 8) / 255.0f, (uint8_t)(color_base >> 16) / 255.0f, (uint8_t)(color_base >> 24) / 255.0f} };
m_color_crest = { {(uint8_t)color_crest / 255.0f, (uint8_t)(color_crest >> 8) / 255.0f, (uint8_t)(color_crest >> 16) / 255.0f, (uint8_t)(color_crest >> 24) / 255.0f} };

if(m_fft_size < 128)
m_fft_size = 128;
Expand Down
4 changes: 2 additions & 2 deletions src/source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ class WAVSource
float m_gravity = 0.0f;
float m_grad_ratio = 1.0f;
bool m_fast_peaks = false;
vec4 m_color_base{ 1.0, 1.0, 1.0, 1.0 };
vec4 m_color_crest{ 1.0, 1.0, 1.0, 1.0 };
vec4 m_color_base{ {1.0, 1.0, 1.0, 1.0} };
vec4 m_color_crest{ {1.0, 1.0, 1.0, 1.0} };
float m_slope = 0.0f;
bool m_log_scale = true;
bool m_mirror_freq_axis = false;
Expand Down

0 comments on commit 124ac52

Please sign in to comment.