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

Very basic sound support #99

Merged
merged 7 commits into from
Aug 27, 2023
Merged

Very basic sound support #99

merged 7 commits into from
Aug 27, 2023

Conversation

elgopher
Copy link
Owner

@elgopher elgopher commented Aug 27, 2023

Command audio.Sfx(0,0,0,31) plays organ oscillator at 440Hz. Just for testing purposes.

Float64 are just easier to use. Performance impact is negligible.
@elgopher elgopher changed the title Generate audio samples Add audio samples generation Aug 27, 2023
This package will have reusable code for synthesizing the sound.
Because audio.go is big enough.
@elgopher elgopher force-pushed the generate-audio-samples branch 6 times, most recently from a39b8bb to 42dd49a Compare August 27, 2023 14:05
Just for testing purposes. This synthesizer generates organ-like wave after audio.Sfx(*,0,*,*) is called.
With this commit ebitengine backend is able to play any sound generated by audio.Synthesizer.
Remove redundant prefix from interface name.
@elgopher elgopher changed the title Add audio samples generation Implement audio samples generation Aug 27, 2023
@elgopher elgopher changed the title Implement audio samples generation Implement very basic audio samples generation Aug 27, 2023
@elgopher elgopher changed the title Implement very basic audio samples generation Implement very basic sound support Aug 27, 2023
@elgopher elgopher changed the title Implement very basic sound support Very basic sound support Aug 27, 2023
@elgopher elgopher marked this pull request as ready for review August 27, 2023 14:18
@elgopher elgopher merged commit 5353dc7 into master Aug 27, 2023
1 check passed
@elgopher elgopher deleted the generate-audio-samples branch August 27, 2023 14:20
This was referenced Aug 27, 2023
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