Skip to content

Commit e919fd0

Browse files
committed
audio uses signed 16-bit
1 parent 6bd73fc commit e919fd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/include/sndx/audio/al/abo.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ namespace sndx::audio {
7272
throw std::runtime_error("OpenAL does not support > 2 channels");
7373

7474
ALenum format = data.channels() == 1 ? AL_FORMAT_MONO16 : AL_FORMAT_STEREO16;
75-
auto converted = convert<uint16_t>(data);
75+
auto converted = convert<int16_t>(data);
7676
alBufferData(m_id, format, converted.data(), size, ALsizei(converted.frequency()));
7777
}
7878

0 commit comments

Comments
 (0)