We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
while data.len() >= num_channels { let read_frames = data.len() / 2;
In the demo/player/src/process.rs file, what does this do exactly?
demo/player/src/process.rs
Why is it dividing cpal's data length to 2? Is it to adjust the buffer length for creek to parse through?
I am new to working with sound so I apologize if this is obvious for you.
The text was updated successfully, but these errors were encountered:
This seems to be assuming the buffer has 2 channels (stereo). 2 should probably be replaced with num_channels.
2
num_channels
Sorry, something went wrong.
No branches or pull requests
In the
demo/player/src/process.rs
file, what does this do exactly?Why is it dividing cpal's data length to 2?
Is it to adjust the buffer length for creek to parse through?
I am new to working with sound so I apologize if this is obvious for you.
The text was updated successfully, but these errors were encountered: