Skip to content

Commit

Permalink
Fix issue 1247: Remove 'inline' from 5 mididev.cpp functions
Browse files Browse the repository at this point in the history
  • Loading branch information
terminator356 committed Sep 23, 2023
1 parent a362f7b commit 050aa29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
23.09.2023
- Fix issue 1247: compilation only succeeds with MODULES_BUILD_STATIC=1 (Tim)
Five undefined symbols. Remove 'inline' from five functions in mididev.cpp
20.09.2023
- Fixed issue 1243 Slow startup: Always rescanning when file contains no plugins. (Tim)
File ladspa_dsp.so was causing rescanning all the time because it is normally empty
Expand Down
10 changes: 5 additions & 5 deletions src/muse/mididev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -863,26 +863,26 @@ float MidiDevice::getWorstSelfLatencyMidi(bool capture)
return tli->_worstSelfLatencyMidi;
}

inline bool MidiDevice::canDominateOutputLatencyMidi(bool capture) const
/*inline*/ bool MidiDevice::canDominateOutputLatencyMidi(bool capture) const
{
if(capture)
return true;
return false;
}

inline bool MidiDevice::canDominateInputLatencyMidi(bool /*capture*/) const
/*inline*/ bool MidiDevice::canDominateInputLatencyMidi(bool /*capture*/) const
{
return false;
}

inline bool MidiDevice::canDominateEndPointLatencyMidi(bool capture) const
/*inline*/ bool MidiDevice::canDominateEndPointLatencyMidi(bool capture) const
{
if(capture)
return false;
return true;
}

inline bool MidiDevice::canPassThruLatencyMidi(bool /*capture*/) const
/*inline*/ bool MidiDevice::canPassThruLatencyMidi(bool /*capture*/) const
{
return true;
}
Expand Down Expand Up @@ -1672,7 +1672,7 @@ TrackLatencyInfo& MidiDevice::getLatencyInfoMidi(bool capture, bool input)
// latencyCompWriteOffset
//---------------------------------------------------------

inline unsigned long MidiDevice::latencyCompWriteOffsetMidi(bool capture) const
/*inline*/ unsigned long MidiDevice::latencyCompWriteOffsetMidi(bool capture) const
{
return capture ? _captureLatencyInfo._compensatorWriteOffset : _playbackLatencyInfo._compensatorWriteOffset;
}
Expand Down

0 comments on commit 050aa29

Please sign in to comment.