Skip to content

Converting 32 bit stream to 16 bit #629

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

You must be logged in to vote

I was running your sketch with my proposed change with
SineWaveGenerator<int32_t> sine_wave;
And for me it works like a charm:

When you use 32000 as max amplitude the converted signal is oscillating around +-0.00001490116 which gives 0 when converted to an integer!

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@wegscheider
Comment options

Comment options

You must be logged in to vote
1 reply
@wegscheider
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@pschatzmann
Comment options

@wegscheider
Comment options

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