ngs2: report voice setup channels from the setup query

Co-authored-by: Phr3d13 <phr3d13@gmail.com>
This commit is contained in:
nmzikandPhr3d13 committed 2026-10-30 01:57:41 +01:00
1 parent e66a7f52b5
commit 9bf311c6c7
4 files changed
+30

No files matched your search

+8
View File
@@ -1158,6 +1158,13 @@ void TestDeferredSamplerSetup() {
"sampler did not play after deferred stream setup");
}
void TestSetupQuery() {
Fixture f(48000, 2);
uint32_t info[2] = {99, 99};
Ngs2VoiceQueryInfo(reinterpret_cast<uintptr_t>(&f.voice), 0x4001, info, sizeof(info));
Check(info[0] == 2 && info[1] == 0, "setup query did not report the voice channels");
}
void TestPlayStateBeforeRender() {
Fixture f(48000);
const int16_t pcm[] = {8192, -16384};
@@ -1888,6 +1895,7 @@ int main() {
TestMonoRateAndRouting();
TestMatrixOutputChannels();
TestCustomPcmStillPlays();
TestSetupQuery();
TestPlayStateBeforeRender();
TestStatePublication();
TestStopThenPlayBeforeRender();