Skip to content

Commit e50bfc6

Browse files
committed
change wording to match feedback
1 parent 52123c1 commit e50bfc6

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

docs/configuration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,25 +770,25 @@ editing the `conf` file in a text editor. Use the examples as reference.
770770
</tr>
771771
</table>
772772

773-
### disable_audio
773+
### stream_audio
774774

775775
<table>
776776
<tr>
777777
<td>Description</td>
778778
<td colspan="2">
779-
This option allows to disable streaming audio completely, useful for streaming of headless displays as second monitors
779+
Weather to Stream Audio or Not, Disabling this can be useful for streaming headless displays as second monitors.
780780
</td>
781781
</tr>
782782
<tr>
783783
<td>Default</td>
784784
<td colspan="2">@code{}
785-
disabled
785+
enabled
786786
@endcode</td>
787787
</tr>
788788
<tr>
789789
<td>Example</td>
790790
<td colspan="2">@code{}
791-
disable_audio = enabled
791+
stream_audio = disabled
792792
@endcode</td>
793793
</tr>
794794
</table>

src/audio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ namespace audio {
129129

130130
void capture(safe::mail_t mail, config_t config, void *channel_data) {
131131
auto shutdown_event = mail->event<bool>(mail::shutdown);
132-
if (config::audio.disable){
132+
if (!config::audio.stream){
133133
shutdown_event->view();
134134
return;
135135
}

src/config.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ namespace config {
511511
audio_t audio {
512512
{}, // audio_sink
513513
{}, // virtual_sink
514-
false, // disable audio
514+
true, // stream audio
515515
true, // install_steam_drivers
516516
};
517517

@@ -1161,7 +1161,7 @@ namespace config {
11611161

11621162
string_f(vars, "audio_sink", audio.sink);
11631163
string_f(vars, "virtual_sink", audio.virtual_sink);
1164-
bool_f(vars, "disable_audio", audio.disable);
1164+
bool_f(vars, "stream_audio", audio.stream);
11651165
bool_f(vars, "install_steam_audio_drivers", audio.install_steam_drivers);
11661166

11671167
string_restricted_f(vars, "origin_web_ui_allowed", nvhttp.origin_web_ui_allowed, {"pc"sv, "lan"sv, "wan"sv});

src/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ namespace config {
147147
struct audio_t {
148148
std::string sink;
149149
std::string virtual_sink;
150-
bool disable;
150+
bool stream;
151151
bool install_steam_drivers;
152152
};
153153

src_assets/common/assets/web/configs/tabs/AudioVideo.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ const config = ref(props.config)
6565

6666
<!-- Disable Audio -->
6767
<Checkbox class="mb-3"
68-
id="disable_audio"
68+
id="stream_audio"
6969
locale-prefix="config"
70-
v-model="config.disable_audio"
71-
default="false"
70+
v-model="config.stream_audio"
71+
default="true"
7272
></Checkbox>
7373

7474
<AdapterNameSelector

src_assets/common/assets/web/public/assets/locale/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@
227227
"hevc_mode_desc": "Allows the client to request HEVC Main or HEVC Main10 video streams. HEVC is more CPU-intensive to encode, so enabling this may reduce performance when using software encoding.",
228228
"high_resolution_scrolling": "High Resolution Scrolling Support",
229229
"high_resolution_scrolling_desc": "When enabled, Sunshine will pass through high resolution scroll events from Moonlight clients. This can be useful to disable for older applications that scroll too fast with high resolution scroll events.",
230-
"disable_audio" : "Disable Audio Streaming",
231-
"disable_audio_desc" : "Disable Streaming Audio Completely, useful for streaming headless monitors",
230+
"stream_audio" : "Stream Audio""
231+
"stream_audio_desc" : "Weather to Stream Audio or Not, Disabling this can be useful for streaming headless displays as second monitors.",
232232
"install_steam_audio_drivers": "Install Steam Audio Drivers",
233233
"install_steam_audio_drivers_desc": "If Steam is installed, this will automatically install the Steam Streaming Speakers driver to support 5.1/7.1 surround sound and muting host audio.",
234234
"key_repeat_delay": "Key Repeat Delay",

0 commit comments

Comments
 (0)