Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/2.3' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Nov 29, 2022
2 parents 9965d55 + 403c009 commit 403ba21
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2044,10 +2044,10 @@ target_include_directories(mixxx-lib SYSTEM PUBLIC lib/fidlib)
target_link_libraries(mixxx-lib PRIVATE fidlib)

# KeyFinder
set(LIBKEYFINDER_VERSION 2.2.6)
find_package(KeyFinder ${LIBKEYFINDER_VERSION})
option(KEYFINDER "KeyFinder support" ON)
if(KEYFINDER)
set(LIBKEYFINDER_VERSION 2.2.6)
find_package(KeyFinder ${LIBKEYFINDER_VERSION})
if (KeyFinder_FOUND)
target_link_libraries(mixxx-lib PRIVATE KeyFinder::KeyFinder)
else()
Expand Down Expand Up @@ -2609,8 +2609,6 @@ if(COREAUDIO)
src/sources/v1/legacyaudiosourceadapter.cpp
lib/apple/CAStreamBasicDescription.cpp
)
find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox REQUIRED)
target_link_libraries(mixxx-lib PRIVATE ${AUDIOTOOLBOX_LIBRARY})
target_compile_definitions(mixxx-lib PRIVATE __COREAUDIO__)
target_include_directories(mixxx-lib SYSTEM PUBLIC lib/apple)
endif()
Expand Down
6 changes: 3 additions & 3 deletions res/controllers/Numark-N4-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,14 +286,14 @@ NumarkN4.topContainer.prototype = new components.ComponentContainer();

NumarkN4.MixerTemplate = function() {
//channel will always be 0 it can be "hardcoded" into the components
this.deckChangeL = new components.Button ({
this.deckChangeL = new components.Button({
midi: [0xB0, 0x50],
input: function(_channel, _control, value, _status, _group) {
this.output(value);
//just "echos" the midi since the controller knows the deck its on itself but doesn't update the corresponding leds.
},
});
this.deckChangeR = new components.Button ({
this.deckChangeR = new components.Button({
midi: [0xB0, 0x51],
input: function(_channel, _control, value, _status, _group) {
this.output(value);
Expand Down Expand Up @@ -641,7 +641,7 @@ NumarkN4.Deck = function(channel) {
midi: [0xB0+channel, 0x01, 0xB0+channel, 0x37], //only specifying input MSB
inKey: "rate",
group: theDeck.group,
invert: false,
invert: true,
});
this.pitchLedHandler = engine.makeConnection(this.group, "rate", function(value) {
// Turns on when rate slider is centered
Expand Down
2 changes: 0 additions & 2 deletions src/library/rekordbox/rekordbox_anlz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ void rekordbox_anlz_t::_read() {
m__unnamed3 = m__io->read_bytes((len_header() - _io()->pos()));
m_sections = new std::vector<tagged_section_t*>();
{
int i = 0;
while (!m__io->is_eof()) {
m_sections->push_back(new tagged_section_t(m__io, this, m__root));
i++;
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/preferences/dialog/dlgprefrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,11 @@ void DlgPrefRecord::updateTextQuality() {
bool isVbr = false;
if (m_selFormat.internalName == ENCODING_MP3) {
EncoderSettings::OptionsGroup group = settings->getOptionGroups().first();
int i=0;
for (const QAbstractButton* widget : qAsConst(m_optionWidgets)) {
if (widget->objectName() == group.groupCode) {
if (widget->isChecked() != Qt::Unchecked && widget->text() == "VBR") {
isVbr = true;
}
i++;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/sources/soundsourceffmpeg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ namespace {

constexpr AVSampleFormat kavSampleFormat = AV_SAMPLE_FMT_FLT;

#if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(57, 28, 100) // FFmpeg 5.1
constexpr uint64_t kavChannelLayoutUndefined = 0;
#endif

constexpr int64_t kavStreamDefaultStartTime = 0;

Expand Down

0 comments on commit 403ba21

Please sign in to comment.