web: ui: add macos audio sink (#912)

This commit is contained in:
ReenigneArcher
2023-02-09 19:41:52 -05:00
committed by GitHub
parent a21e231cae
commit 9ac1e3dcd6
2 changed files with 24 additions and 2 deletions

View File

@@ -146,8 +146,7 @@ macOS
^^^^^ ^^^^^
Sunshine can only access microphones on macOS due to system limitations. To stream system audio use Sunshine can only access microphones on macOS due to system limitations. To stream system audio use
`Soundflower <https://github.com/mattingalls/Soundflower>`_ or `Soundflower <https://github.com/mattingalls/Soundflower>`_ or
`BlackHole <https://github.com/ExistentialAudio/BlackHole>`_ and `BlackHole <https://github.com/ExistentialAudio/BlackHole>`_.
select their sink as audio device in `sunshine.conf`.
.. Note:: Command Keys are not forwarded by Moonlight. Right Option-Key is mapped to CMD-Key. .. Note:: Command Keys are not forwarded by Moonlight. Right Option-Key is mapped to CMD-Key.

View File

@@ -369,6 +369,29 @@
<br /> <br />
</div> </div>
</div> </div>
<div class="mb-3" v-if="platform === 'macos'">
<label for="audio_sink" class="form-label">Audio Sink</label>
<input
type="text"
class="form-control"
id="audio_sink"
placeholder="BlackHole 2ch"
v-model="config.audio_sink"
/>
<div class="form-text">
The name of the audio sink used for Audio Loopback<br />
Sunshine can only access microphones on macOS due to system limitations.<br />
To stream system audio using <a
href="https://github.com/mattingalls/Soundflower"
target="_blank">
Soundflower
</a> or <a
href="https://github.com/ExistentialAudio/BlackHole"
target="_blank">
BlackHole
</a>.
</div>
</div>
<!--Virtual Sink--> <!--Virtual Sink-->
<div class="mb-3" v-if="platform === 'windows'"> <div class="mb-3" v-if="platform === 'windows'">
<label for="virtual_sink" class="form-label">Virtual Sink</label> <label for="virtual_sink" class="form-label">Virtual Sink</label>