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

Refactor appendtone signature #8

Merged
merged 2 commits into from Oct 23, 2017
Merged

Conversation

raphlinus
Copy link
Contributor

This is another attempt at PR #6, and should fix the failing tests there.

Creates an "outbuf" struct with all the state needed for rendering
pulses into an audio buffer. Calls to appendtone take a pointer to
this struct instead of four separate args.

This patch shouldn't affect behavior at all. It is a step toward
providing band-limited waveform generation (see datajerk#4).

Also uses doubling approach to reallocate audio buffer, one of the
existing todo items.
Fixes failing tests in dsk case, due to rate mismatch.
@datajerk datajerk merged commit 43d41a4 into datajerk:master Oct 23, 2017
@datajerk
Copy link
Owner

Passed all 20 tests. I committed new binaries.

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.

None yet

2 participants