several small fixes
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@582 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -84,14 +84,14 @@
|
||||
#define MIN_GAIN .000001 /* -120 dB */
|
||||
#define NOISE_FLOOR .00000000000005 /* -266 dB */
|
||||
|
||||
typedef __int8_t int8;
|
||||
typedef __uint8_t uint8;
|
||||
typedef __int16_t int16;
|
||||
typedef __uint16_t uint16;
|
||||
typedef __int32_t int32;
|
||||
typedef __uint32_t uint32;
|
||||
typedef __int64_t int64;
|
||||
typedef __uint64_t uint64;
|
||||
typedef int8_t int8;
|
||||
typedef uint8_t uint8;
|
||||
typedef int16_t int16;
|
||||
typedef uint16_t uint16;
|
||||
typedef int32_t int32;
|
||||
typedef uint32_t uint32;
|
||||
typedef int64_t int64;
|
||||
typedef uint64_t uint64;
|
||||
|
||||
typedef struct {
|
||||
char * name;
|
||||
@@ -137,7 +137,7 @@ X max (X x, Y y)
|
||||
static inline float
|
||||
frandom()
|
||||
{
|
||||
return (float) random() / (float) RAND_MAX;
|
||||
return (float) rand() / (float) RAND_MAX;
|
||||
}
|
||||
|
||||
#endif /* _BASICS_H_ */
|
||||
|
||||
@@ -55,7 +55,7 @@ seed()
|
||||
static struct timeval tv;
|
||||
gettimeofday (&tv, 0);
|
||||
|
||||
srandom (tv.tv_sec ^ tv.tv_usec);
|
||||
srand (tv.tv_sec ^ tv.tv_usec);
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user