Skip to content

output samples without sample rate? #445

Answered by pschatzmann
reppr asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, all audio output is based on a defined sample rate. However you do not need to take care of this for your case.

I suggest that you just implement a subclass of SoundGenerator that provides the actual value that you want to output.
Have a look at how e.g. the NoiseGenerator is implemented.

Here is an example sketch that uses an SoundGenerator

Replies: 0 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by reppr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants