Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in SXP bit_input_stream leading to incorrect Impulse Tracker conversion #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ferdi265
Copy link

@Ferdi265 Ferdi265 commented Jun 1, 2022

This PR fixes a bug in the bit_input_stream type in the bundled SXP library, which is used by the convert_it() function in the pmf_converter tool.

When refilling the internal cache buffer in bit_input_stream, the m_cache_start_bit_pos variable is always moved forward by a full buffer size, even when fewer bytes than that have been read from the stream. This leads to the bit_input_stream reporting end-of-stream much earlier than intended, which cuts the sample short.

This PR fixes issue #9. After application of this PR, the full voice sample can be heard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant