Skip to content

Commit

Permalink
Merge commit 'dfc870c0d8a42f973bfe631a100bd17b0a7a64db'
Browse files Browse the repository at this point in the history
Conflicts:
	src/main.cpp
  • Loading branch information
beschulz committed Jan 6, 2015
2 parents 37e8ced + dfc870c commit 02432ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ INCLUDES=\
-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/X11/include/
endif

ifdef USE_FLOAT
LD_PLATFORM_FLAGS+=-DUSE_FLOAT
endif

all: $(BINARY)

$(SRC)/version.hpp: Makefile version.txt
Expand Down
4 changes: 4 additions & 0 deletions src/wav2json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ void compute_waveform(
using std::endl;

// you can change it to float or short, short was much faster for me.
#ifdef USE_FLOAT
typedef float sample_type;
#else
typedef short sample_type;
#endif

samples = std::min(wav.frames(), (sf_count_t)samples);

Expand Down

0 comments on commit 02432ad

Please sign in to comment.