-
-
Notifications
You must be signed in to change notification settings - Fork 23.4k
Support overriding the number of channels in the AudioDriverPulseAudio
buffer
#103655
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
Changes from 3 commits
81162cb
4ebd44c
e3ca38b
ba211e1
d7cb9b2
03fb3f6
05d8ffe
e8b2955
f3a0cf3
0646b7f
aaea07a
a2a7d26
02061aa
453baf3
9d7e47a
40db9c5
1e7a69c
8353a0a
9ef3571
e949f19
ffaf304
4ea9c55
6a1e078
6f76a35
09f89f3
d0b6ba7
d2257c8
2a487c3
6312a09
a44f8a7
f1038fd
574a5f0
807c3a3
d47347a
099bd4a
9904ecf
dce1871
114d3dd
a6f2868
bacfaf9
c6284b3
1c6e0d3
8af7805
9c574c6
a5a07ac
a612347
8980708
0c53fe5
585cc16
03d9260
e1629f3
f7dea2a
26bb395
0b23391
5123818
5dfaf58
6932a10
e0aacd3
909acac
e7f8493
d615848
1e2642d
380ce44
2705e5a
3bdf7c0
b1022a9
a1d468f
4147c46
e1df0ac
039cb04
159b9fe
39b05f6
1902e00
b40a029
ad1372b
4d579ab
8723632
a60cf31
4ff12e7
589663d
1c4a521
586272c
68b7d23
733e173
4b8966f
25cf7da
337d826
8913fe6
c975539
f93b8a2
59b4ce8
feb7829
b51f398
b29f507
c145ce7
464ed99
993e089
01b2e8c
bdd70b8
2d428d5
43a38ce
967d871
db5f061
466dae4
13b0fb0
0120d06
3c8f643
ae8dc49
586d6dc
12b14cd
4769004
633de06
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,6 +216,9 @@ void AudioDriverManager::initialize(int p_driver) { | |
GLOBAL_DEF_RST("audio/driver/enable_input", false); | ||
GLOBAL_DEF_RST(PropertyInfo(Variant::INT, "audio/driver/mix_rate", PROPERTY_HINT_RANGE, "11025,192000,1,or_greater,suffix:Hz"), DEFAULT_MIX_RATE); | ||
GLOBAL_DEF_RST(PropertyInfo(Variant::INT, "audio/driver/mix_rate.web", PROPERTY_HINT_RANGE, "0,192000,1,or_greater,suffix:Hz"), 0); // Safer default output_latency for web (use browser default). | ||
GLOBAL_DEF_RST("audio/driver/override_channels", false); | ||
GLOBAL_DEF_RST(PropertyInfo(Variant::INT, "audio/driver/override_speaker_channels", PROPERTY_HINT_RANGE, "2,8,1"), 8); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should mono configurations also be allowed? I'm not sure if you can still get a mono output on a PC intentionally in 2025. (For audio input, you can, e.g. if using a Bluetooth headset + microphone.) Also, do configurations with 5 or 7 channels make sense? To my knowledge, this is what exists:
If 5 and 7 channels don't actually exist in real audio setups, then the property could have an enum hint to specify which values are allowed (and give them a description):
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like this, but it's so far outside of my knowledge and could be misleading about what we have implemented. What I propose now is simple and close to the C++ implementation. If I do more of this I will have to some surround sound hardware to plug my PC into so it's not done completely blind. |
||
GLOBAL_DEF(PropertyInfo(Variant::INT, "audio/driver/override_channel_out", PROPERTY_HINT_RANGE, "0,6,1"), 0); | ||
|
||
int failed_driver = -1; | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.