mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-30 12:48:59 +00:00
Add support for RAW audio (WAV) recording
RAW audio forwarding was supported but not for recording. Add support for recording a raw audio stream to a `.wav` file (and `.mkv`).
This commit is contained in:
parent
1713422c13
commit
200488111e
8 changed files with 43 additions and 15 deletions
|
@ -26,6 +26,7 @@ enum sc_record_format {
|
|||
SC_RECORD_FORMAT_OPUS,
|
||||
SC_RECORD_FORMAT_AAC,
|
||||
SC_RECORD_FORMAT_FLAC,
|
||||
SC_RECORD_FORMAT_WAV,
|
||||
};
|
||||
|
||||
static inline bool
|
||||
|
@ -34,7 +35,8 @@ sc_record_format_is_audio_only(enum sc_record_format fmt) {
|
|||
|| fmt == SC_RECORD_FORMAT_MKA
|
||||
|| fmt == SC_RECORD_FORMAT_OPUS
|
||||
|| fmt == SC_RECORD_FORMAT_AAC
|
||||
|| fmt == SC_RECORD_FORMAT_FLAC;
|
||||
|| fmt == SC_RECORD_FORMAT_FLAC
|
||||
|| fmt == SC_RECORD_FORMAT_WAV;
|
||||
}
|
||||
|
||||
enum sc_codec {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue