| @@ -881,6 +881,8 @@ target_link_libraries(carla-utils | |||||
| PkgConfig::FLUIDSYNTH | PkgConfig::FLUIDSYNTH | ||||
| PkgConfig::X11 | PkgConfig::X11 | ||||
| ${CARLA_PTHREADS} | ${CARLA_PTHREADS} | ||||
| PUBLIC | |||||
| $<$<BOOL:${WIN32}>:winmm> | |||||
| ) | ) | ||||
| target_sources(carla-utils | target_sources(carla-utils | ||||
| @@ -23,9 +23,16 @@ | |||||
| #ifndef __AD_H__ | #ifndef __AD_H__ | ||||
| #define __AD_H__ | #define __AD_H__ | ||||
| #include <unistd.h> | |||||
| #include <stddef.h> | |||||
| #include <stdint.h> | #include <stdint.h> | ||||
| #ifdef _MSC_VER | |||||
| #include <basetsd.h> | |||||
| typedef SSIZE_T ssize_t; | |||||
| #else | |||||
| #include <sys/types.h> | |||||
| #endif | |||||
| struct adinfo { | struct adinfo { | ||||
| unsigned int sample_rate; | unsigned int sample_rate; | ||||
| unsigned int channels; | unsigned int channels; | ||||
| @@ -20,8 +20,6 @@ | |||||
| #include <stdio.h> | #include <stdio.h> | ||||
| #include <stdlib.h> | #include <stdlib.h> | ||||
| #include <string.h> | #include <string.h> | ||||
| #include <strings.h> | |||||
| #include <unistd.h> | |||||
| #include <math.h> | #include <math.h> | ||||
| #include "ad_plugin.h" | #include "ad_plugin.h" | ||||
| @@ -16,9 +16,10 @@ | |||||
| Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||||
| */ | */ | ||||
| #ifndef __AD_PLUGIN_H__ | #ifndef __AD_PLUGIN_H__ | ||||
| #define __AD_PLUGIN_H__ | #define __AD_PLUGIN_H__ | ||||
| #include <stdint.h> | |||||
| #include "ad.h" | #include "ad.h" | ||||
| #define dbg(A, B, ...) ad_debug_printf(__func__, A, B, ##__VA_ARGS__) | #define dbg(A, B, ...) ad_debug_printf(__func__, A, B, ##__VA_ARGS__) | ||||