Skip to content

Commit

Permalink
Merge pull request #6 from jgranick/master
Browse files Browse the repository at this point in the history
Compile fix
  • Loading branch information
soywiz committed Dec 19, 2014
2 parents e6db8e7 + 95da3e1 commit 3ce4668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions project/Build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<compilerflag value="-Ilibogg/include" />
<compilerflag value="-Ilibvorbis/include" />
<compilerflag value="-Ilibvorbis/lib" />
<compilerflag value="-I../libs.src/libvpx" />
<compilerflag value="-Ilibvpx-generic" />
<compilerflag value="-I${ANDROID_NDK_ROOT}/sources/cpufeatures" if="android"/>

<file name="common/ExternalInterface.cpp" />
Expand All @@ -46,7 +46,7 @@
<compilerflag value="-Ilibogg/include" />
<compilerflag value="-Ilibvorbis/include" />
<compilerflag value="-Ilibvorbis/lib" />
<compilerflag value="-I../libs.src/libvpx" />
<compilerflag value="-Ilibvpx-generic" />
<compilerflag value="-I${ANDROID_NDK_ROOT}/sources/cpufeatures" if="android"/>

<file name="libwebm/vttreader.cc" />
Expand Down
7 changes: 4 additions & 3 deletions project/common/ExternalInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <hx/CFFI.h>
#include <string.h>
#include <stdio.h>
#include <stdarg.h>
#include <cstdlib>
#include <assert.h>
#include <math.h>
Expand Down Expand Up @@ -631,7 +632,7 @@ extern "C" {
}
}

printf("Vorbis: version:%d, channels:%d, rate:%d\n", mVorbisInfo.version, mVorbisInfo.channels, mVorbisInfo.rate);
printf("Vorbis: version:%d, channels:%d, rate:%ld\n", mVorbisInfo.version, mVorbisInfo.channels, mVorbisInfo.rate);

status = vorbis_synthesis_init(&mVorbisDsp, &mVorbisInfo);
if (status < 0) {
Expand Down Expand Up @@ -838,8 +839,8 @@ extern "C" {

printf("\t\tAudio Channels\t\t: %lld\n", pAudioTrack->GetChannels());
printf("\t\tAudio BitDepth\t\t: %lld\n", pAudioTrack->GetBitDepth());
printf("\t\tAddio Sample Rate\t: %.3f\n", pAudioTrack->GetSamplingRate());
printf("\t\tAddio Private Data\t: %p, %d\n", privateDataPointer, privateDataSize);
printf("\t\tAudio Sample Rate\t: %.3f\n", pAudioTrack->GetSamplingRate());
printf("\t\tAudio Private Data\t: %p, %ld\n", privateDataPointer, privateDataSize);

this->vorbisDecoder->parseHeader(privateDataPointer, privateDataSize);
}
Expand Down

1 comment on commit 3ce4668

@mastef
Copy link

@mastef mastef commented on 3ce4668 Feb 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah great - I just went through this whole process in #10 - I guess the haxelib version is not updated with the latest version yet

Please sign in to comment.