forked from Genymobile/scrcpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The AudioCaptureForegroundException was very specific. Rename it to AudioCaptureException to support other capture failures. PR Genymobile#5102 <Genymobile#5102>
- Loading branch information
Showing
5 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
server/src/main/java/com/genymobile/scrcpy/audio/AudioCaptureException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.genymobile.scrcpy.audio; | ||
|
||
/** | ||
* Exception for any audio capture issue. | ||
* <p/> | ||
* This includes the case where audio capture failed on Android 11 specifically because the running App (Shell) was not in foreground. | ||
* <p/> | ||
* Its purpose is to disable audio without errors (that's why the exception is empty, any error message must be printed by the caller before | ||
* throwing the exception). | ||
*/ | ||
public class AudioCaptureException extends Exception { | ||
} |
7 changes: 0 additions & 7 deletions
7
server/src/main/java/com/genymobile/scrcpy/audio/AudioCaptureForegroundException.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters