1 // Copyright 2021 Jean Pierre Cimalando
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 // SPDX-License-Identifier: Apache-2.0
25 struct ysfx_config_s
{
26 std::string import_root
;
27 std::string data_root
;
28 std::vector
<ysfx_audio_format_t
> audio_formats
;
29 ysfx_log_reporter_t
*log_reporter
= nullptr;
30 intptr_t userdata
= 0;
31 std::atomic
<uint32_t> ref_count
{1};
34 void ysfx_log(ysfx_config_t
&conf
, ysfx_log_level level
, const char *message
);
35 void ysfx_logfv(ysfx_config_t
&conf
, ysfx_log_level level
, const char *format
, va_list ap
);
37 __attribute__((format(printf
, 3, 4)))
39 void ysfx_logf(ysfx_config_t
&conf
, ysfx_log_level level
, const char *format
, ...);