Commit Graph

3 Commits

Author SHA1 Message Date
Rob Watson f9d6c66f7e Bug fix: Complete frames as soon as it is possible
It should not be necessary to wait for the subsequent sync word to
determine that the current frame is complete - this can be assured
simply back checking the expected frame size against the actual bytes.

This ensures that completed frames are made available immediately, and
avoids dropping a single frame from every binary stream that is
processed.
2018-04-18 13:00:01 +02:00
Rob Watson 82f661cc25 Minor cleanup and fixes
- Small refactor to remove a function body
- Check parameter type in Frame.from_header/1
- Prefer doctest to mpeg_audio_frame_parser_test
2018-04-18 13:00:01 +02:00
Rob Watson d89db0ec49 Add initial implementation 2018-04-17 11:51:12 +02:00