Browse Source

Keep fighting msvc

Signed-off-by: falkTX <falktx@falktx.com>
pull/1780/head
falkTX 1 year ago
parent
commit
62221b9c59
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
9 changed files with 25 additions and 1 deletions
  1. +5
    -0
      cmake/CMakeLists.txt
  2. +1
    -0
      source/modules/audio_decoder/ad.h
  3. +5
    -0
      source/modules/audio_decoder/ad_dr_mp3.c
  4. +1
    -0
      source/modules/audio_decoder/ad_ffmpeg.c
  5. +5
    -0
      source/modules/audio_decoder/ad_minimp3.c
  6. +1
    -0
      source/modules/audio_decoder/ad_plugin.c
  7. +1
    -0
      source/modules/audio_decoder/ad_plugin.h
  8. +5
    -0
      source/modules/audio_decoder/ad_soundfile.c
  9. +1
    -1
      source/native-plugins/audio-gain.c

+ 5
- 0
cmake/CMakeLists.txt View File

@@ -632,6 +632,11 @@ add_library(carla::zita-resampler ALIAS carla-zita-resampler)

set_common_target_properties(carla-zita-resampler)

target_compile_definitions(carla-native-plugins
PRIVATE
$<$<BOOL:${MSVC}>:_USE_MATH_DEFINES>
)

target_include_directories(carla-zita-resampler
PRIVATE
../source/includes


+ 1
- 0
source/modules/audio_decoder/ad.h View File

@@ -4,6 +4,7 @@
@author Robin Gareus <robin@gareus.org>

Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser Public License as published by


+ 5
- 0
source/modules/audio_decoder/ad_dr_mp3.c View File

@@ -1,5 +1,6 @@
/**
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser Public License as published by
@@ -33,6 +34,10 @@

#define DR_MP3_MAX_SEEK_POINTS 500

#ifdef _MSC_VER
#define strcasecmp stricmp
#endif

typedef struct {
drmp3 mp3;
drmp3_seek_point seekPoints[DR_MP3_MAX_SEEK_POINTS];


+ 1
- 0
source/modules/audio_decoder/ad_ffmpeg.c View File

@@ -1,5 +1,6 @@
/**
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser Public License as published by


+ 5
- 0
source/modules/audio_decoder/ad_minimp3.c View File

@@ -1,5 +1,6 @@
/**
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser Public License as published by
@@ -36,6 +37,10 @@
#define MINIMP3_IMPLEMENTATION
#include "minimp3_ex.h"

#ifdef _MSC_VER
#define strcasecmp stricmp
#endif

/* internal abstraction */

typedef struct {


+ 1
- 0
source/modules/audio_decoder/ad_plugin.c View File

@@ -1,5 +1,6 @@
/**
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser Public License as published by


+ 1
- 0
source/modules/audio_decoder/ad_plugin.h View File

@@ -1,5 +1,6 @@
/**
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser Public License as published by


+ 5
- 0
source/modules/audio_decoder/ad_soundfile.c View File

@@ -1,5 +1,6 @@
/**
Copyright (C) 2011-2013 Robin Gareus <robin@gareus.org>
Copyright (C) 2014-2023 Filipe Coelho <falktx@falktx.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser Public License as published by
@@ -28,6 +29,10 @@

#include <sndfile.h>

#ifdef _MSC_VER
#define strcasecmp stricmp
#endif

/* internal abstraction */

typedef struct {


+ 1
- 1
source/native-plugins/audio-gain.c View File

@@ -109,7 +109,7 @@ static uint32_t audiogain_get_parameter_count(NativePluginHandle handle)

static const NativeParameter* audiogain_get_parameter_info(NativePluginHandle handle, uint32_t index)
{
if (index > (handlePtr->isMono ? PARAM_COUNT_MONO : PARAM_COUNT_STEREO))
if (index > (uint32_t)(handlePtr->isMono ? PARAM_COUNT_MONO : PARAM_COUNT_STEREO))
return NULL;

static NativeParameter param;


Loading…
Cancel
Save