mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-01 23:35:47 +00:00
Fps configurable in configuration file
This commit is contained in:
parent
869ed8b8af
commit
dba74524c7
@ -77,6 +77,10 @@ Use 30 fps for streaming.
|
||||
Use 60 fps for streaming.
|
||||
This is the default configuration.
|
||||
|
||||
=item B<-fps> [I<FPS>]
|
||||
|
||||
Change the number of frame per second to I<FPS>
|
||||
|
||||
=item B<-bitrate> [I<BITRATE>]
|
||||
|
||||
Change bitrate to I<BITRATE> kbps.
|
||||
|
@ -61,6 +61,7 @@ static struct option long_options[] = {
|
||||
{"remote", no_argument, NULL, 's'},
|
||||
{"fullscreen", no_argument, NULL, 't'},
|
||||
{"surround", no_argument, NULL, 'u'},
|
||||
{"fps", required_argument, NULL, 'v'},
|
||||
{0, 0, 0, 0},
|
||||
};
|
||||
|
||||
@ -192,6 +193,9 @@ static void parse_argument(int c, char* value, PCONFIGURATION config) {
|
||||
case 'u':
|
||||
config->stream.audioConfiguration = AUDIO_CONFIGURATION_51_SURROUND;
|
||||
break;
|
||||
case 'v':
|
||||
config->stream.fps = atoi(value);
|
||||
break;
|
||||
case 1:
|
||||
if (config->action == NULL)
|
||||
config->action = value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user