Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into huxley-hacks
Browse files Browse the repository at this point in the history
  • Loading branch information
ywwg committed Jun 11, 2023
2 parents a13c4d7 + d763be6 commit c387400
Show file tree
Hide file tree
Showing 52 changed files with 3,620 additions and 196 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": [ "eslint:recommended",
"plugin:jsdoc/recommended",
"plugin:@typescript-eslint/recommended" ],
"plugin:jsdoc/recommended"],

"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down Expand Up @@ -99,6 +98,7 @@
"overrides": [
{
"files": [ "res/controllers/*.d.ts" ],
"extends": [ "plugin:@typescript-eslint/recommended" ],
"rules": {
"no-unused-vars": "off"
}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ jobs:
# also adjust the for the local Windows build setup in
# ./tools/windows_buildenv.bat
cmake_args: >-
-DWARNINGS_FATAL=ON
-DBULK=OFF
-DFFMPEG=OFF
-DHSS1394=ON
Expand Down Expand Up @@ -354,7 +355,9 @@ jobs:
if: matrix.name == 'Ubuntu 22.04 (gcc)'
run: |
if [[ "${{ github.ref }}" == "refs/heads/main" ]] && [[ "${{ github.repository }}" == "mixxxdj/mixxx" ]]; then
CPACK_ARGS="-D DEB_UPLOAD_PPA=ppa:mixxx/nightlies -D CPACK_DEBIAN_DEBIAN_VERSION=0ubuntu2"
CPACK_ARGS="-D DEB_UPLOAD_PPA=ppa:mixxx/nightlies"
elif [[ "${{ github.ref }}" == "refs/heads/2.4" ]] && [[ "${{ github.repository }}" == "mixxxdj/mixxx" ]]; then
CPACK_ARGS="-D DEB_UPLOAD_PPA=ppa:mixxx/mixxxbetas"
elif [[ "${{ github.ref }}" =~ ^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$ ]] && [[ "${{ github.repository }}" == "mixxxdj/mixxx" ]]; then
CPACK_ARGS="-D DEB_UPLOAD_PPA=ppa:mixxx/mixxx"
else
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/labeler@v4.0.4
- uses: actions/labeler@4.1.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: false
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,7 @@ if(MSVC)
if(WARNINGS_PEDANTIC)
target_compile_options(mixxx-lib PUBLIC /W4)
else()
# Warning Level 3 (production quality)
target_compile_options(mixxx-lib PUBLIC /W3)
target_compile_definitions(mixxx-lib PUBLIC _SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING _CRT_SECURE_NO_WARNINGS)
endif()
Expand Down Expand Up @@ -2243,7 +2244,7 @@ add_library(MP3GuessEnc STATIC EXCLUDE_FROM_ALL
lib/mp3guessenc-0.27.4/bit_utils.c
)
if(WIN32)
target_compile_definitions(MP3GuessEnc PRIVATE __WINDOWS__)
target_compile_definitions(MP3GuessEnc PRIVATE __WINDOWS__ _CRT_SECURE_NO_WARNINGS)
endif()
target_include_directories(MP3GuessEnc SYSTEM PUBLIC lib/mp3guessenc-0.27.4)
target_link_libraries(mixxx-lib PRIVATE MP3GuessEnc)
Expand Down Expand Up @@ -2885,6 +2886,9 @@ if(BROADCAST)
message(STATUS "Using internal libshout-idjc")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/lib/libshout-idjc")
target_include_directories(mixxx-lib SYSTEM PUBLIC lib/libshout-idjc/include)
if(WIN32)
target_compile_definitions(shout_mixxx PRIVATE __WINDOWS__ _CRT_NONSTDC_NO_WARNINGS)
endif()
target_link_libraries(mixxx-lib PRIVATE shout_mixxx)
else()
target_link_libraries(mixxx-lib PRIVATE Shoutidjc::Shoutidjc)
Expand Down Expand Up @@ -3044,6 +3048,7 @@ if(HID)
target_sources(mixxx-lib PRIVATE
src/controllers/hid/hidcontroller.cpp
src/controllers/hid/hidiothread.cpp
src/controllers/hid/hidioglobaloutputreportfifo.cpp
src/controllers/hid/hidiooutputreport.cpp
src/controllers/hid/hiddevice.cpp
src/controllers/hid/hidenumerator.cpp
Expand Down Expand Up @@ -3164,7 +3169,7 @@ if (NOT CPACK_DEBIAN_PACKAGE_RELEASE)
set(CPACK_DEBIAN_PACKAGE_RELEASE 1)
endif()

set(CPACK_DEBIAN_DISTRIBUTION_RELEASES jammy kinetic lunar)
set(CPACK_DEBIAN_DISTRIBUTION_RELEASES jammy kinetic lunar mantic)
set(CPACK_DEBIAN_SOURCE_DIR ${CMAKE_SOURCE_DIR})
set(CPACK_DEBIAN_UPLOAD_PPA_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/packaging/CPackDebUploadPPA.cmake")
set(CPACK_DEBIAN_INSTALL_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/packaging/CPackDebInstall.cmake")
Expand Down
2 changes: 1 addition & 1 deletion lib/benchmark/src/benchmark.cc
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ void RunBenchmarks(const std::vector<BenchmarkInstance>& benchmarks,

// Disable deprecated warnings temporarily because we need to reference
// CSVReporter but don't want to trigger -Werror=-Wdeprecated-declarations
#ifdef __GNUC__
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif
Expand Down
3 changes: 1 addition & 2 deletions lib/fidlib/fidlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1681,12 +1681,11 @@ auto_adjust_dual(Spec *sp, double rate, double f0, double f1) {
double r0, r1, err0, err1;
double perr;
int cnt;
int cnt_design= 0;

#define DESIGN(mm,ww) { if (rv) {free(rv);rv= 0;} \
rv= design(rate, mm-ww, mm+ww, sp->order, sp->n_arg, sp->argarr); \
r0= fid_response(rv, f0); r1= fid_response(rv, f1); \
err0= fabs(M301DB-r0); err1= fabs(M301DB-r1); cnt_design++; }
err0= fabs(M301DB-r0); err1= fabs(M301DB-r1); }

#define INC_WID ((r0+r1 < 1.0) == bpass)
#define INC_MID ((r0 > r1) == bpass)
Expand Down
6 changes: 4 additions & 2 deletions lib/libshout-idjc/src/common/net/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,12 @@ int sock_stalled (int error)
}


#ifdef HAVE_GETADDRINFO
static int sock_connect_pending (int error)
{
return error == EINPROGRESS || error == EALREADY;
}
#endif

/* sock_valid_socket
**
Expand Down Expand Up @@ -262,7 +264,7 @@ int sock_set_blocking(sock_t sock, int block)
#ifdef __MINGW32__
u_long varblock = 1;
#else
int varblock = 1;
u_long varblock = 1;
#endif
#endif

Expand Down Expand Up @@ -786,7 +788,7 @@ int sock_try_connection (sock_t sock, const char *hostname, unsigned int port)
return -1;
}

memcpy(&server.sin_addr, &sin.sin_addr, sizeof(struct sockaddr_in));
memcpy(&server.sin_addr, &sin.sin_addr, sizeof(IN_ADDR));

server.sin_family = AF_INET;
server.sin_port = htons((short)port);
Expand Down
4 changes: 4 additions & 0 deletions lib/mp3guessenc-0.27.4/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#include <stdlib.h>
#include <string.h>

#ifdef _MSC_VER
#define strcasecmp _stricmp
#endif

/*
* This takes the command line strings starting at optind and concatenate them in order
* to build a long string. Then this string will be compared with the actual key (codename).
Expand Down
17 changes: 17 additions & 0 deletions res/controllers/Traktor Kontrol S4 MK3.hid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version='1.0' encoding='utf-8'?>
<MixxxControllerPreset mixxxVersion="2.4.0" schemaVersion="1">
<info>
<name>Traktor Kontrol S4 MK3</name>
<author>Be, A. Colombier</author>
<description>HID Mapping for Traktor Kontrol S4 MK3</description>
<manual>native_instruments_traktor_kontrol_s4_mk3</manual>
<devices>
<product protocol="hid" vendor_id="0x17cc" product_id="0x1720" usage_page="0xff01" usage="0x1" interface_number="0x4" />
</devices>
</info>
<controller id="Traktor">
<scriptfiles>
<file filename="Traktor-Kontrol-S4-MK3.js" functionprefix="TraktorS4MK3"/>
</scriptfiles>
</controller>
</MixxxControllerPreset>
Loading

0 comments on commit c387400

Please sign in to comment.