First post, by lucky7456969
- Rank
- Oldbie
I have
#include <cmath>
#include <limits>
using namespace std;
But yet still
I have
#include <cmath>
#include <limits>
using namespace std;
But yet still
My magic glass bowl says:
Thanks for the info, you need more garlic
lround will never, ever be found under Visual C++...
Hello bloodbat,
Now I found 4 similar methods for rounding numbers in Visual C++ standard library.
1) round_indeterminate
2) round_toward_infinity
3) round_toward_neg_infinity
4) round_toward_zero
5) rount_to_nearest
Should I replace it with 5) ?
Whoops, my mistake, they ain't methods, they are enums
Thanks
Jack
Are there any prebuilt lib's for visual c++? Can't find any. when there are, I am done.
Thanks
Jack
For SDL and such? Yep, probably, but ideally you build your own.
As for lround, it can be faked, asked Google.
https://www.google.com.hk/search?q=%2B%22sdl+ … biw=939&bih=710
No doesn't seem to exist.
Build your own, then, for what you seem to be trying to do (compressed audio for CD images) you'll need to build some codecs too, I use libvorbis (that needs libogg).