From 9748897a439743085a2ff5d6e8994e97558daa00 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 18 Jan 2014 11:39:58 +0100 Subject: [PATCH] Fix build when building without SDL Commit f2590c24dfb55c2c876a1ba1ea8b1643230b471c was incomplete and thus LMMS failed to build when building without SDL support. --- include/MidiDummy.h | 2 +- src/core/Mixer.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/MidiDummy.h b/include/MidiDummy.h index 709789580..cba725fbb 100644 --- a/include/MidiDummy.h +++ b/include/MidiDummy.h @@ -71,7 +71,7 @@ public: protected: - virtual void sendByte( const Uint8 ) + virtual void sendByte( const unsigned char ) { } diff --git a/src/core/Mixer.cpp b/src/core/Mixer.cpp index 5a28a5e8c..59dfab03c 100644 --- a/src/core/Mixer.cpp +++ b/src/core/Mixer.cpp @@ -360,7 +360,7 @@ Mixer::Mixer() : m_workingBuf = (sampleFrame*) aligned_malloc( m_framesPerPeriod * sizeof( sampleFrame ) ); - for( Uint8 i = 0; i < 3; i++ ) + for( int i = 0; i < 3; i++ ) { m_readBuf = (surroundSampleFrame*) aligned_malloc( m_framesPerPeriod * @@ -412,7 +412,7 @@ Mixer::~Mixer() delete m_audioDev; delete m_midiClient; - for( Uint8 i = 0; i < 3; i++ ) + for( int i = 0; i < 3; i++ ) { aligned_free( m_bufferPool[i] ); }