-
-
Notifications
You must be signed in to change notification settings - Fork 363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No 7.1 sound output #775
Comments
Hm... when I read the log here... maybe the problem is, that the playback device is:
while it probably should be:
|
With the device 15 it reports conversion to stereo:
|
Maybe I should also post here output from
|
In the PulseAudio case it's reporting only 2 channels so that explains why surround output wouldn't be working. Why it's reporting only 2 channels I couldn't tell you. For the ALSA case it's a different situation. It's detecting the entire 8 channels as expected so it should be outputting correctly. The output channel map (which I'm assuming you've specified in the device config?) is the same, albeit with channels in a different order. In this case miniaudio's channel converter should detect this and do it's channel conversion as a simple shuffle. As a test, what happens if you leave the channel map as it's defaults in the device config? Do you at least get audio out of each speaker, even though they're not in the right order? |
Nevermind, I just saw in your code that you're indeed not passing in a channel map. For some reason my brain just totally glossed over the code in your comment... I'm not entirely sure what's going here. |
Right, the above output is without passing a channel map.. I can modify the The sound is ok when I do
|
This is also working:
|
I don't know exactly what's causing this. My suspicion is that it's a PulseAudio configuration error somewhere, but I can't know for sure. Does ma_device_id id;
strcpy(id.alsa, "surround71:CARD=ICUSBAUDIO7D,DEV=0");
...
deviceConfig.playback.pDeviceID = &id; // <-- Specify the ID via the device config. That might give you some idea as to whether or not it's a PulseAudio configuration thing, or maybe a miniaudio thing. |
Hi,
I have this 7.1.wav test sound
Found from this page: https://www.reddit.com/r/hometheater/comments/11qqv95/surround_sound_test_files_in_almost_every_format/
And such a code (merged simple-enumeration.c and simple-playback.c examples):
I am testing it on Raspberry Pi:
With an USB sound card.
My issue is, that when I run the test app with the mentioned sound input, which has 8 channels, I have just merged output from the front jack of the sound card. I was somehow expecting, that the sound would be from all channels, like expected.
Here is the debug output:
Btw... I had to disable Pulseaudio, because with it I had just these 2 devices:
And in the debug output was just a stereo output:
Any idea, what I must do to have the output from all channels? My goal is to have a full surround output from MiniAudio.
Btw.. the sound plays as expected, when I use:
The text was updated successfully, but these errors were encountered: