VOGONS


First post, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

I have

#include <cmath>
#include <limits>

using namespace std;

But yet still

Reply 2 of 7, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie

lround will never, ever be found under Visual C++...

Reply 3 of 7, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

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

Reply 4 of 7, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Are there any prebuilt lib's for visual c++? Can't find any. when there are, I am done.
Thanks
Jack

Reply 5 of 7, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie

For SDL and such? Yep, probably, but ideally you build your own.
As for lround, it can be faked, asked Google.

Reply 7 of 7, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie

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).