Clang Format
This commit is contained in:
+8
-10
@@ -55,19 +55,18 @@ static int init(int argc, char **argv) {
|
||||
|
||||
if (config.cfg != NULL) {
|
||||
/* Get the desired buffer size setting. */
|
||||
if (config_lookup_int(config.cfg,
|
||||
"ao.audio_backend_buffer_desired_length", &value)) {
|
||||
if (config_lookup_int(config.cfg, "ao.audio_backend_buffer_desired_length", &value)) {
|
||||
if ((value < 0) || (value > 66150)) {
|
||||
inform("The setting ao.audio_backend_buffer_desired_length is deprecated. "
|
||||
"Use ao.audio_backend_buffer_desired_length_in_seconds instead.");
|
||||
"Use ao.audio_backend_buffer_desired_length_in_seconds instead.");
|
||||
die("Invalid ao audio backend buffer desired length \"%d\". It "
|
||||
"should be between 0 and "
|
||||
"66150, default is 6615",
|
||||
value);
|
||||
} else {
|
||||
inform("The setting ao.audio_backend_buffer_desired_length is deprecated. "
|
||||
"Use ao.audio_backend_buffer_desired_length_in_seconds instead.");
|
||||
config.audio_backend_buffer_desired_length = 1.0*value/44100;
|
||||
"Use ao.audio_backend_buffer_desired_length_in_seconds instead.");
|
||||
config.audio_backend_buffer_desired_length = 1.0 * value / 44100;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,18 +84,17 @@ static int init(int argc, char **argv) {
|
||||
}
|
||||
|
||||
/* Get the latency offset. */
|
||||
if (config_lookup_int(config.cfg, "ao.audio_backend_latency_offset",
|
||||
&value)) {
|
||||
if (config_lookup_int(config.cfg, "ao.audio_backend_latency_offset", &value)) {
|
||||
if ((value < -66150) || (value > 66150)) {
|
||||
inform("The setting ao.audio_backend_latency_offset is deprecated. "
|
||||
"Use ao.audio_backend_latency_offset_in_seconds instead.");
|
||||
"Use ao.audio_backend_latency_offset_in_seconds instead.");
|
||||
die("Invalid ao audio backend buffer latency offset \"%d\". It "
|
||||
"should be between -66150 and +66150, default is 0",
|
||||
value);
|
||||
} else {
|
||||
inform("The setting ao.audio_backend_latency_offset is deprecated. "
|
||||
"Use ao.audio_backend_latency_offset_in_seconds instead.");
|
||||
config.audio_backend_latency_offset = 1.0*value/44100;
|
||||
"Use ao.audio_backend_latency_offset_in_seconds instead.");
|
||||
config.audio_backend_latency_offset = 1.0 * value / 44100;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user