mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-06-25 16:13:13 -04:00
libobs: Apply clang-format 22 formatting
This commit is contained in:
@@ -114,8 +114,8 @@ static inline void do_audio_output(struct audio_output *audio, size_t mix_idx, u
|
||||
for (size_t i = mix->inputs.num; i > 0; i--) {
|
||||
struct audio_input *input = mix->inputs.array + (i - 1);
|
||||
|
||||
float(*buf)[AUDIO_OUTPUT_FRAMES] = input->conversion.allow_clipping ? mix->buffer_unclamped
|
||||
: mix->buffer;
|
||||
float (*buf)[AUDIO_OUTPUT_FRAMES] = input->conversion.allow_clipping ? mix->buffer_unclamped
|
||||
: mix->buffer;
|
||||
for (size_t i = 0; i < audio->planes; i++)
|
||||
data.data[i] = (uint8_t *)buf[i];
|
||||
|
||||
|
||||
@@ -2371,7 +2371,7 @@ static bool prepare_audio(struct obs_output *output, const struct audio_data *ol
|
||||
cutoff = util_mul_div64(cutoff, output->sample_rate, 1000000000ULL);
|
||||
|
||||
for (size_t i = 0; i < output->planes; i++)
|
||||
new->data[i] += output->audio_size *(uint32_t)cutoff;
|
||||
new->data[i] += output->audio_size * (uint32_t)cutoff;
|
||||
new->frames -= (uint32_t)cutoff;
|
||||
}
|
||||
|
||||
|
||||
@@ -454,7 +454,7 @@ static obs_source_t *obs_source_create_internal(const char *id, const char *name
|
||||
*
|
||||
* XXX: Fix design flaws with filters */
|
||||
if (info->type == OBS_SOURCE_TYPE_FILTER)
|
||||
private = true;
|
||||
private = true;
|
||||
}
|
||||
|
||||
source->mute_unmute_key = OBS_INVALID_HOTKEY_PAIR_ID;
|
||||
|
||||
@@ -41,8 +41,7 @@ EXPORT void os_process_args_add_arg(struct os_process_args *args, const char *ar
|
||||
#ifndef _MSC_VER
|
||||
__attribute__((__format__(__printf__, 2, 3)))
|
||||
#endif
|
||||
EXPORT void
|
||||
os_process_args_add_argf(struct os_process_args *args, const char *format, ...);
|
||||
EXPORT void os_process_args_add_argf(struct os_process_args *args, const char *format, ...);
|
||||
EXPORT char **os_process_args_get_argv(const struct os_process_args *args);
|
||||
EXPORT size_t os_process_args_get_argc(struct os_process_args *args);
|
||||
EXPORT void os_process_args_destroy(struct os_process_args *args);
|
||||
|
||||
@@ -479,7 +479,7 @@ static bool is_generic_class(const char *current_class)
|
||||
if (astrstri(current_class, *class) != NULL) {
|
||||
return true;
|
||||
}
|
||||
class ++;
|
||||
class++;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user