We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bd73fc commit e919fd0Copy full SHA for e919fd0
1 file changed
src/include/sndx/audio/al/abo.hpp
@@ -72,7 +72,7 @@ namespace sndx::audio {
72
throw std::runtime_error("OpenAL does not support > 2 channels");
73
74
ALenum format = data.channels() == 1 ? AL_FORMAT_MONO16 : AL_FORMAT_STEREO16;
75
- auto converted = convert<uint16_t>(data);
+ auto converted = convert<int16_t>(data);
76
alBufferData(m_id, format, converted.data(), size, ALsizei(converted.frequency()));
77
}
78
0 commit comments