From d93cfb32fef5b76d4181a8bf7c1e378881483a75 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Fri, 2 Sep 2016 14:49:16 +0100 Subject: [PATCH 1/3] travis: Update to XCode 7.3.1 --- .travis-build.sh | 3 ++- .travis-deps.sh | 3 +-- .travis.yml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis-build.sh b/.travis-build.sh index 8440b4f5c..80361ddaf 100755 --- a/.travis-build.sh +++ b/.travis-build.sh @@ -23,11 +23,12 @@ if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then elif [ "$TRAVIS_OS_NAME" = "osx" ]; then set -o pipefail + export MACOSX_DEPLOYMENT_TARGET=10.9 export Qt5_DIR=$(brew --prefix)/opt/qt5 mkdir build && cd build cmake .. -GXcode - xcodebuild -configuration Release | xcpretty -c + xcodebuild -configuration Release ctest -VV -C Release fi diff --git a/.travis-deps.sh b/.travis-deps.sh index aad9074bf..b0833f74a 100755 --- a/.travis-deps.sh +++ b/.travis-deps.sh @@ -20,7 +20,6 @@ if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then ) elif [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update > /dev/null # silence the very verbose output - brew unlink cmake + brew unlink cmake || true brew install cmake qt5 sdl2 dylibbundler - gem install xcpretty fi diff --git a/.travis.yml b/.travis.yml index 8be395770..a693e70aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ matrix: dist: trusty - os: osx sudo: false + osx_image: xcode7.3 env: global: From 0bbda3bab45f37fc888b8a8ac3ca9392a667c342 Mon Sep 17 00:00:00 2001 From: fincs Date: Sat, 3 Sep 2016 14:01:31 +0100 Subject: [PATCH 2/3] codec: Fix ADPCM distortion caused by incorrect nibble order Closes #2049. Signed-off-by: MerryMage --- src/audio_core/codec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio_core/codec.cpp b/src/audio_core/codec.cpp index ab65514b7..3e23323f1 100644 --- a/src/audio_core/codec.cpp +++ b/src/audio_core/codec.cpp @@ -58,11 +58,11 @@ StereoBuffer16 DecodeADPCM(const u8* const data, const size_t sample_count, cons size_t outputi = framei * SAMPLES_PER_FRAME; size_t datai = framei * FRAME_LEN + 1; for (size_t i = 0; i < SAMPLES_PER_FRAME && outputi < sample_count; i += 2) { - const s16 sample1 = decode_sample(SIGNED_NIBBLES[data[datai] & 0xF]); + const s16 sample1 = decode_sample(SIGNED_NIBBLES[data[datai] >> 4]); ret[outputi].fill(sample1); outputi++; - const s16 sample2 = decode_sample(SIGNED_NIBBLES[data[datai] >> 4]); + const s16 sample2 = decode_sample(SIGNED_NIBBLES[data[datai] & 0xF]); ret[outputi].fill(sample2); outputi++; From 722af0703efd58d2c2de9edbac763355053601a2 Mon Sep 17 00:00:00 2001 From: Lectem Date: Thu, 8 Sep 2016 04:31:57 +0200 Subject: [PATCH 3/3] travis cache for cmake and sdl2 (#2060) --- .travis-deps.sh | 17 +++++++++++++---- .travis.yml | 4 ++++ 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.travis-deps.sh b/.travis-deps.sh index b0833f74a..567a2543d 100755 --- a/.travis-deps.sh +++ b/.travis-deps.sh @@ -9,15 +9,24 @@ if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then export CXX=g++-6 mkdir -p $HOME/.local - curl -L http://www.cmake.org/files/v3.2/cmake-3.2.0-Linux-i386.tar.gz \ - | tar -xz -C $HOME/.local --strip-components=1 + if [ ! -e $HOME/.local/bin/cmake ]; then + echo "CMake not found in the cache, get and extract it..." + curl -L http://www.cmake.org/files/v3.2/cmake-3.2.0-Linux-i386.tar.gz \ + | tar -xz -C $HOME/.local --strip-components=1 + else + echo "Using cached CMake" + fi - ( + if [ ! -e $HOME/.local/lib/libSDL2.la ]; then + echo "SDL2 not found in cache, get and build it..." wget http://libsdl.org/release/SDL2-2.0.4.tar.gz -O - | tar xz cd SDL2-2.0.4 ./configure --prefix=$HOME/.local make -j4 && make install - ) + else + echo "Using cached SDL2" + fi + elif [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update > /dev/null # silence the very verbose output brew unlink cmake || true diff --git a/.travis.yml b/.travis.yml index a693e70aa..69f9ef273 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,10 @@ addons: - lib32stdc++6 # For CMake - lftp # To upload builds +cache: + directories: + - $HOME/.local + install: ./.travis-deps.sh script: ./.travis-build.sh after_success: ./.travis-upload.sh