Skip to content

Commit

Permalink
Do not return the list of custom chunks in reversed form
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkkrp committed Dec 6, 2016
1 parent e211743 commit cb88c87
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Codec/Audio/Wave.hs
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,9 @@ readWaveFile path = liftIO . withFile path ReadMode $ \h -> do
case (chunkTag, chunkBody) of
("data", _) ->
return wave
{ waveDataOffset = fromIntegral offset + 8
, waveDataSize = chunkSize }
{ waveDataOffset = fromIntegral offset + 8
, waveDataSize = chunkSize
, waveOtherChunks = reverse (waveOtherChunks wave) }
(tag, Nothing) ->
giveup (NonDataChunkIsTooLong tag)
("fmt ", Just body) ->
Expand Down

0 comments on commit cb88c87

Please sign in to comment.