summaryrefslogtreecommitdiffstats
path: root/genwave.c
diff options
context:
space:
mode:
authorSuper User2008-06-14 08:34:50 +0200
committerSuper User2008-06-14 08:34:50 +0200
commitd2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4 (patch)
tree8c9e9504a275a43d5a8785dcca7badf28ada5999 /genwave.c
parentfixed dialing-bug when dialing chan_lcr (diff)
downloadlcr-d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4.tar.gz
lcr-d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4.tar.xz
lcr-d2b113f2c4f11acfaee1b2e0fd2f03744a89f6d4.zip
changed long to int (64 bit system's compatibilty)
Diffstat (limited to 'genwave.c')
-rw-r--r--genwave.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/genwave.c b/genwave.c
index d0d024e..cb62262 100644
--- a/genwave.c
+++ b/genwave.c
@@ -86,8 +86,8 @@ static short isdn_audio_alaw_to_s16[] =
struct fmt {
unsigned short stereo; /* 1 = pcm, 2 = adpcm */
unsigned short channels; /* number of channels */
- unsigned long sample_rate; /* sample rate */
- unsigned long data_rate; /* data rate */
+ unsigned int sample_rate; /* sample rate */
+ unsigned int data_rate; /* data rate */
unsigned short bytes_sample; /* bytes per sample (all channels) */
unsigned short bits_sample; /* bits per sample (one channel) */
};
@@ -97,9 +97,9 @@ void write_law(FILE *fp, char *name, char law)
unsigned char buffer[256];
struct fmt fmt;
FILE *lfp;
- unsigned long i;
+ unsigned int i;
short sample;
- unsigned long size, wsize;
+ unsigned int size, wsize;
if ((lfp=fopen(name,"r")))
{