Skip to content

Commit

Permalink
* fixes beschulz#9
Browse files Browse the repository at this point in the history
* category: epic fail. it took me two ours to figure out, that exactly 1 character was missing ('f'). A character I removed just recently while fixing another bug. oh my ….
  • Loading branch information
beschulz committed Sep 10, 2013
1 parent e1decdb commit e5763fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wav2json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void compute_waveform(
for (size_t x = 0; x < samples; ++x)
{
// read frames
sf_count_t n = const_cast<SndfileHandle&>(wav).read(&block[0], frames_per_pixel) * wav.channels();
sf_count_t n = const_cast<SndfileHandle&>(wav).readf(&block[0], frames_per_pixel) * wav.channels();
assert(n <= (sf_count_t)block.size());

// find min and max
Expand Down

0 comments on commit e5763fb

Please sign in to comment.