sound generator (Documentation Bugs and Problems)

by 8BitCoder, Wednesday, September 06, 2017, 01:11 (871 days ago) @ DickStomp

When I checked the source code some time ago (in Sound.cpp, I think), the sample rate was around 11000, which means the maximum frequency should be half that, or around 6KHz. I don't know why it would misbehave at 3500 unless there is a rounding bug in the sine wave generation code; or perhaps the version you are using had an even lower sample rate around 8000/sec.

In any case, I just pulled the latest code and the wave generation code has been reworked and it appears the sample rate is configurable. I can't build the source on Ubuntu to test it, however.

Complete thread:

 RSS Feed of thread

powered by my little forum