mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Use a streamer to send the audio stream
Send each encoded audio packet using a streamer. PR #3757 <https://github.com/Genymobile/scrcpy/pull/3757>
This commit is contained in:
parent
5eed2c52c2
commit
7cf5cf5875
4 changed files with 58 additions and 2 deletions
|
|
@ -111,7 +111,8 @@ public final class Server {
|
|||
}
|
||||
|
||||
if (audio) {
|
||||
audioEncoder = new AudioEncoder();
|
||||
Streamer audioStreamer = new Streamer(connection.getAudioFd(), AudioCodec.OPUS, options.getSendCodecId(), options.getSendFrameMeta());
|
||||
audioEncoder = new AudioEncoder(audioStreamer);
|
||||
audioEncoder.start();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue