Skip to content

Commit

Permalink
Fix #4844
Browse files Browse the repository at this point in the history
  • Loading branch information
Alayan-stk-2 committed Nov 24, 2023
1 parent e744fd3 commit 2a90327
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/audio/sfx_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ bool SFXBuffer::loadVorbisBuffer(const std::string &name, ALuint buffer)
data.get(), len, info->rate);
success = true;

if (m_positional && info->channels > 1)
Log::error("SFXBuffer", "Positional audio is not supported with stereo files, "
"but %s is stereo", m_file.c_str());

int buffer_size, frequency, bits_per_sample, channels;
buffer_size = len;
frequency = info->rate;
Expand Down

0 comments on commit 2a90327

Please sign in to comment.