mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 05:06:31 +01:00
Proper solution to replace 9cabc1b hack.
Initialize uninitialized variable (m_started), remove cruft.
This commit is contained in:
parent
e057b873b5
commit
c8b207d911
3 changed files with 1 additions and 4 deletions
|
|
@ -37,6 +37,7 @@ namespace ARDOUR {
|
||||||
|
|
||||||
WinMMEMidiInputDevice::WinMMEMidiInputDevice (int index)
|
WinMMEMidiInputDevice::WinMMEMidiInputDevice (int index)
|
||||||
: m_handle(0)
|
: m_handle(0)
|
||||||
|
, m_started(false)
|
||||||
, m_midi_buffer(new RingBuffer<uint8_t>(MIDI_BUFFER_SIZE))
|
, m_midi_buffer(new RingBuffer<uint8_t>(MIDI_BUFFER_SIZE))
|
||||||
, m_sysex_buffer(new uint8_t[SYSEX_BUFFER_SIZE])
|
, m_sysex_buffer(new uint8_t[SYSEX_BUFFER_SIZE])
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,6 @@ private: // data
|
||||||
MIDIHDR m_sysex_header;
|
MIDIHDR m_sysex_header;
|
||||||
|
|
||||||
bool m_started;
|
bool m_started;
|
||||||
bool m_enabled;
|
|
||||||
|
|
||||||
std::string m_name;
|
std::string m_name;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,3 @@ def build(bld):
|
||||||
'ARDOURBACKEND_DLL_EXPORTS',
|
'ARDOURBACKEND_DLL_EXPORTS',
|
||||||
'USE_MMCSS_THREAD_PRIORITIES'
|
'USE_MMCSS_THREAD_PRIORITIES'
|
||||||
]
|
]
|
||||||
if bld.env['build_target'] == 'mingw':
|
|
||||||
# MIDI input doesn't work with -O3 or -O2 so override
|
|
||||||
obj.cxxflags = [ '-O0' ]
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue