Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -ru SDL2-2.0.5/src/audio/directsound/SDL_directsound.c SDL2-2.0.5_fix-warnings/src/audio/directsound/SDL_directsound.c
- --- SDL2-2.0.5/src/audio/directsound/SDL_directsound.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/audio/directsound/SDL_directsound.c 2016-11-04 01:28:51.389600000 +0200
- @@ -158,6 +158,8 @@
- static BOOL CALLBACK
- FindAllDevs(LPGUID guid, LPCWSTR desc, LPCWSTR module, LPVOID data)
- {
- + (void)module;
- +
- const int iscapture = (int) ((size_t) data);
- if (guid != NULL) { /* skip default device */
- char *str = WIN_LookupAudioDeviceName(desc, guid);
- @@ -314,7 +316,7 @@
- DWORD junk, cursor, ptr1len, ptr2len;
- VOID *ptr1, *ptr2;
- - SDL_assert(buflen == this->spec.size);
- + SDL_assert((Uint32)buflen == this->spec.size);
- while (SDL_TRUE) {
- if (SDL_AtomicGet(&this->shutdown)) { /* in case the buffer froze... */
- @@ -472,6 +474,8 @@
- static int
- DSOUND_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
- {
- + (void)devname;
- +
- const DWORD numchunks = 8;
- HRESULT result;
- SDL_bool valid_format = SDL_FALSE;
- @@ -522,7 +526,7 @@
- bufsize = numchunks * this->spec.size;
- if ((bufsize < DSBSIZE_MIN) || (bufsize > DSBSIZE_MAX)) {
- - SDL_SetError("Sound buffer size must be between %d and %d",
- + SDL_SetError("Sound buffer size must be between %lu and %lu",
- (DSBSIZE_MIN < numchunks) ? 1 : DSBSIZE_MIN / numchunks,
- DSBSIZE_MAX / numchunks);
- } else {
- diff -ru SDL2-2.0.5/src/audio/disk/SDL_diskaudio.c SDL2-2.0.5_fix-warnings/src/audio/disk/SDL_diskaudio.c
- --- SDL2-2.0.5/src/audio/disk/SDL_diskaudio.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/audio/disk/SDL_diskaudio.c 2016-11-03 21:11:34.641400000 +0200
- @@ -98,6 +98,7 @@
- static void
- DISKAUDIO_FlushCapture(_THIS)
- {
- + (void)this;
- /* no op...we don't advance the file pointer or anything. */
- }
- diff -ru SDL2-2.0.5/src/audio/dummy/SDL_dummyaudio.c SDL2-2.0.5_fix-warnings/src/audio/dummy/SDL_dummyaudio.c
- --- SDL2-2.0.5/src/audio/dummy/SDL_dummyaudio.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/audio/dummy/SDL_dummyaudio.c 2016-11-03 21:13:38.737400000 +0200
- @@ -30,6 +30,11 @@
- static int
- DUMMYAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
- {
- + (void)this;
- + (void)handle;
- + (void)devname;
- + (void)iscapture;
- +
- return 0; /* always succeeds. */
- }
- diff -ru SDL2-2.0.5/src/audio/SDL_audio.c SDL2-2.0.5_fix-warnings/src/audio/SDL_audio.c
- --- SDL2-2.0.5/src/audio/SDL_audio.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/audio/SDL_audio.c 2016-11-03 17:54:52.047400000 +0200
- @@ -167,49 +167,63 @@
- static void
- SDL_AudioThreadInit_Default(_THIS)
- { /* no-op. */
- + (void)_this;
- }
- static void
- SDL_AudioWaitDevice_Default(_THIS)
- { /* no-op. */
- + (void)_this;
- }
- static void
- SDL_AudioPlayDevice_Default(_THIS)
- { /* no-op. */
- + (void)_this;
- }
- static int
- SDL_AudioGetPendingBytes_Default(_THIS)
- {
- + (void)_this;
- +
- return 0;
- }
- static Uint8 *
- SDL_AudioGetDeviceBuf_Default(_THIS)
- {
- + (void)_this;
- +
- return NULL;
- }
- static int
- SDL_AudioCaptureFromDevice_Default(_THIS, void *buffer, int buflen)
- {
- + (void)_this;
- + (void)buffer;
- + (void)buflen;
- +
- return -1; /* just fail immediately. */
- }
- static void
- SDL_AudioFlushCapture_Default(_THIS)
- { /* no-op. */
- + (void)_this;
- }
- static void
- SDL_AudioPrepareToClose_Default(_THIS)
- { /* no-op. */
- + (void)_this;
- }
- static void
- SDL_AudioCloseDevice_Default(_THIS)
- { /* no-op. */
- + (void)_this;
- }
- static void
- @@ -220,12 +234,18 @@
- static void
- SDL_AudioFreeDeviceHandle_Default(void *handle)
- { /* no-op. */
- + (void)handle;
- }
- static int
- SDL_AudioOpenDevice_Default(_THIS, void *handle, const char *devname, int iscapture)
- {
- + (void)_this;
- + (void)handle;
- + (void)devname;
- + (void)iscapture;
- +
- return SDL_Unsupported();
- }
- @@ -262,6 +282,7 @@
- static void
- SDL_AudioLockOrUnlockDeviceWithNoMixerLock(SDL_AudioDevice * device)
- {
- + (void)device;
- }
- static void
- @@ -421,7 +442,7 @@
- void
- SDL_RemoveAudioDevice(const int iscapture, void *handle)
- {
- - int device_index;
- + size_t device_index;
- SDL_AudioDevice *device = NULL;
- SDL_LockMutex(current_audio.detectionLock);
- @@ -716,7 +737,7 @@
- SDL_AudioDevice *device = (SDL_AudioDevice *) devicep;
- const int silence = (int) device->spec.silence;
- const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
- - const int stream_len = (device->convert.needed) ? device->convert.len : device->spec.size;
- + const int stream_len = (device->convert.needed) ? device->convert.len : (int)device->spec.size;
- Uint8 *stream;
- void *udata = device->spec.userdata;
- void (SDLCALL *callback) (void *, Uint8 *, int) = device->spec.callback;
- @@ -797,7 +818,7 @@
- SDL_AudioDevice *device = (SDL_AudioDevice *) devicep;
- const int silence = (int) device->spec.silence;
- const Uint32 delay = ((device->spec.samples * 1000) / device->spec.freq);
- - const int stream_len = (device->convert.needed) ? device->convert.len : device->spec.size;
- + const int stream_len = (device->convert.needed) ? device->convert.len : (int)device->spec.size;
- Uint8 *stream;
- void *udata = device->spec.userdata;
- void (SDLCALL *callback) (void *, Uint8 *, int) = device->spec.callback;
- @@ -1186,7 +1207,7 @@
- SDL_AudioDevice *device;
- SDL_bool build_cvt;
- void *handle = NULL;
- - int i = 0;
- + size_t i = 0;
- if (!SDL_WasInit(SDL_INIT_AUDIO)) {
- SDL_SetError("Audio subsystem is not initialized");
- @@ -1379,9 +1400,9 @@
- if (device->spec.callback == NULL) { /* use buffer queueing? */
- /* pool a few packets to start. Enough for two callbacks. */
- const int packetlen = SDL_AUDIOBUFFERQUEUE_PACKETLEN;
- - const int wantbytes = ((device->convert.needed) ? device->convert.len : device->spec.size) * 2;
- + const int wantbytes = ((device->convert.needed) ? device->convert.len : (int)device->spec.size) * 2;
- const int wantpackets = (wantbytes / packetlen) + ((wantbytes % packetlen) ? packetlen : 0);
- - for (i = 0; i < wantpackets; i++) {
- + for (i = 0; i < (size_t)wantpackets; i++) {
- SDL_AudioBufferQueue *packet = (SDL_AudioBufferQueue *) SDL_malloc(sizeof (SDL_AudioBufferQueue));
- if (packet) { /* don't care if this fails, we'll deal later. */
- packet->datalen = 0;
- diff -ru SDL2-2.0.5/src/audio/SDL_audiocvt.c SDL2-2.0.5_fix-warnings/src/audio/SDL_audiocvt.c
- --- SDL2-2.0.5/src/audio/SDL_audiocvt.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/audio/SDL_audiocvt.c 2016-11-03 17:58:09.135400000 +0200
- @@ -842,6 +842,9 @@
- * processor, platform, compiler, or library here.
- */
- + (void)src_fmt;
- + (void)dst_fmt;
- +
- return NULL; /* no specialized converter code available. */
- }
- @@ -904,6 +907,11 @@
- * processor, platform, compiler, or library here.
- */
- + (void)cvt;
- + (void)dst_channels;
- + (void)src_rate;
- + (void)dst_rate;
- +
- return NULL; /* no specialized converter code available. */
- }
- diff -ru SDL2-2.0.5/src/audio/SDL_audiotypecvt.c SDL2-2.0.5_fix-warnings/src/audio/SDL_audiotypecvt.c
- --- SDL2-2.0.5/src/audio/SDL_audiotypecvt.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/audio/SDL_audiotypecvt.c 2016-11-03 18:07:18.770400000 +0200
- @@ -58,6 +58,8 @@
- static void SDLCALL
- SDL_Convert_U8_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Sint8 *dst;
- @@ -81,6 +83,8 @@
- static void SDLCALL
- SDL_Convert_U8_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Uint16 *dst;
- @@ -105,6 +109,8 @@
- static void SDLCALL
- SDL_Convert_U8_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Sint16 *dst;
- @@ -129,6 +135,8 @@
- static void SDLCALL
- SDL_Convert_U8_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Uint16 *dst;
- @@ -153,6 +161,8 @@
- static void SDLCALL
- SDL_Convert_U8_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Sint16 *dst;
- @@ -177,6 +187,8 @@
- static void SDLCALL
- SDL_Convert_U8_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Sint32 *dst;
- @@ -201,6 +213,8 @@
- static void SDLCALL
- SDL_Convert_U8_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Sint32 *dst;
- @@ -225,6 +239,8 @@
- static void SDLCALL
- SDL_Convert_U8_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- float *dst;
- @@ -249,6 +265,8 @@
- static void SDLCALL
- SDL_Convert_U8_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- float *dst;
- @@ -273,6 +291,8 @@
- static void SDLCALL
- SDL_Convert_S8_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Uint8 *dst;
- @@ -296,6 +316,8 @@
- static void SDLCALL
- SDL_Convert_S8_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Uint16 *dst;
- @@ -320,6 +342,8 @@
- static void SDLCALL
- SDL_Convert_S8_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Sint16 *dst;
- @@ -344,6 +368,8 @@
- static void SDLCALL
- SDL_Convert_S8_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Uint16 *dst;
- @@ -368,6 +394,8 @@
- static void SDLCALL
- SDL_Convert_S8_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Sint16 *dst;
- @@ -392,6 +420,8 @@
- static void SDLCALL
- SDL_Convert_S8_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Sint32 *dst;
- @@ -416,6 +446,8 @@
- static void SDLCALL
- SDL_Convert_S8_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- Sint32 *dst;
- @@ -440,6 +472,8 @@
- static void SDLCALL
- SDL_Convert_S8_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- float *dst;
- @@ -464,6 +498,8 @@
- static void SDLCALL
- SDL_Convert_S8_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint8 *src;
- float *dst;
- @@ -488,6 +524,8 @@
- static void SDLCALL
- SDL_Convert_U16LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint8 *dst;
- @@ -512,6 +550,8 @@
- static void SDLCALL
- SDL_Convert_U16LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint8 *dst;
- @@ -536,6 +576,8 @@
- static void SDLCALL
- SDL_Convert_U16LSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint16 *dst;
- @@ -559,6 +601,8 @@
- static void SDLCALL
- SDL_Convert_U16LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint16 *dst;
- @@ -582,6 +626,8 @@
- static void SDLCALL
- SDL_Convert_U16LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint16 *dst;
- @@ -605,6 +651,8 @@
- static void SDLCALL
- SDL_Convert_U16LSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint32 *dst;
- @@ -629,6 +677,8 @@
- static void SDLCALL
- SDL_Convert_U16LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint32 *dst;
- @@ -653,6 +703,8 @@
- static void SDLCALL
- SDL_Convert_U16LSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- float *dst;
- @@ -677,6 +729,8 @@
- static void SDLCALL
- SDL_Convert_U16LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- float *dst;
- @@ -701,6 +755,8 @@
- static void SDLCALL
- SDL_Convert_S16LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint8 *dst;
- @@ -725,6 +781,8 @@
- static void SDLCALL
- SDL_Convert_S16LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint8 *dst;
- @@ -749,6 +807,8 @@
- static void SDLCALL
- SDL_Convert_S16LSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint16 *dst;
- @@ -772,6 +832,8 @@
- static void SDLCALL
- SDL_Convert_S16LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint16 *dst;
- @@ -795,6 +857,8 @@
- static void SDLCALL
- SDL_Convert_S16LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint16 *dst;
- @@ -818,6 +882,8 @@
- static void SDLCALL
- SDL_Convert_S16LSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint32 *dst;
- @@ -842,6 +908,8 @@
- static void SDLCALL
- SDL_Convert_S16LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint32 *dst;
- @@ -866,6 +934,8 @@
- static void SDLCALL
- SDL_Convert_S16LSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- float *dst;
- @@ -890,6 +960,8 @@
- static void SDLCALL
- SDL_Convert_S16LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- float *dst;
- @@ -914,6 +986,8 @@
- static void SDLCALL
- SDL_Convert_U16MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint8 *dst;
- @@ -938,6 +1012,8 @@
- static void SDLCALL
- SDL_Convert_U16MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint8 *dst;
- @@ -962,6 +1038,8 @@
- static void SDLCALL
- SDL_Convert_U16MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint16 *dst;
- @@ -985,6 +1063,8 @@
- static void SDLCALL
- SDL_Convert_U16MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint16 *dst;
- @@ -1008,6 +1088,8 @@
- static void SDLCALL
- SDL_Convert_U16MSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint16 *dst;
- @@ -1031,6 +1113,8 @@
- static void SDLCALL
- SDL_Convert_U16MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint32 *dst;
- @@ -1055,6 +1139,8 @@
- static void SDLCALL
- SDL_Convert_U16MSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint32 *dst;
- @@ -1079,6 +1165,8 @@
- static void SDLCALL
- SDL_Convert_U16MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- float *dst;
- @@ -1103,6 +1191,8 @@
- static void SDLCALL
- SDL_Convert_U16MSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- float *dst;
- @@ -1127,6 +1217,8 @@
- static void SDLCALL
- SDL_Convert_S16MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint8 *dst;
- @@ -1151,6 +1243,8 @@
- static void SDLCALL
- SDL_Convert_S16MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint8 *dst;
- @@ -1175,6 +1269,8 @@
- static void SDLCALL
- SDL_Convert_S16MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint16 *dst;
- @@ -1198,6 +1294,8 @@
- static void SDLCALL
- SDL_Convert_S16MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint16 *dst;
- @@ -1221,6 +1319,8 @@
- static void SDLCALL
- SDL_Convert_S16MSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Uint16 *dst;
- @@ -1244,6 +1344,8 @@
- static void SDLCALL
- SDL_Convert_S16MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint32 *dst;
- @@ -1268,6 +1370,8 @@
- static void SDLCALL
- SDL_Convert_S16MSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- Sint32 *dst;
- @@ -1292,6 +1396,8 @@
- static void SDLCALL
- SDL_Convert_S16MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- float *dst;
- @@ -1316,6 +1422,8 @@
- static void SDLCALL
- SDL_Convert_S16MSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint16 *src;
- float *dst;
- @@ -1340,6 +1448,8 @@
- static void SDLCALL
- SDL_Convert_S32LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Uint8 *dst;
- @@ -1364,6 +1474,8 @@
- static void SDLCALL
- SDL_Convert_S32LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Sint8 *dst;
- @@ -1388,6 +1500,8 @@
- static void SDLCALL
- SDL_Convert_S32LSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Uint16 *dst;
- @@ -1412,6 +1526,8 @@
- static void SDLCALL
- SDL_Convert_S32LSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Sint16 *dst;
- @@ -1436,6 +1552,8 @@
- static void SDLCALL
- SDL_Convert_S32LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Uint16 *dst;
- @@ -1460,6 +1578,8 @@
- static void SDLCALL
- SDL_Convert_S32LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Sint16 *dst;
- @@ -1484,6 +1604,8 @@
- static void SDLCALL
- SDL_Convert_S32LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Sint32 *dst;
- @@ -1507,6 +1629,8 @@
- static void SDLCALL
- SDL_Convert_S32LSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- float *dst;
- @@ -1530,6 +1654,8 @@
- static void SDLCALL
- SDL_Convert_S32LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- float *dst;
- @@ -1553,6 +1679,8 @@
- static void SDLCALL
- SDL_Convert_S32MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Uint8 *dst;
- @@ -1577,6 +1705,8 @@
- static void SDLCALL
- SDL_Convert_S32MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Sint8 *dst;
- @@ -1601,6 +1731,8 @@
- static void SDLCALL
- SDL_Convert_S32MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Uint16 *dst;
- @@ -1625,6 +1757,8 @@
- static void SDLCALL
- SDL_Convert_S32MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Sint16 *dst;
- @@ -1649,6 +1783,8 @@
- static void SDLCALL
- SDL_Convert_S32MSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Uint16 *dst;
- @@ -1673,6 +1809,8 @@
- static void SDLCALL
- SDL_Convert_S32MSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Sint16 *dst;
- @@ -1697,6 +1835,8 @@
- static void SDLCALL
- SDL_Convert_S32MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- Sint32 *dst;
- @@ -1720,6 +1860,8 @@
- static void SDLCALL
- SDL_Convert_S32MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- float *dst;
- @@ -1743,6 +1885,8 @@
- static void SDLCALL
- SDL_Convert_S32MSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const Uint32 *src;
- float *dst;
- @@ -1766,6 +1910,8 @@
- static void SDLCALL
- SDL_Convert_F32LSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Uint8 *dst;
- @@ -1790,6 +1936,8 @@
- static void SDLCALL
- SDL_Convert_F32LSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint8 *dst;
- @@ -1814,6 +1962,8 @@
- static void SDLCALL
- SDL_Convert_F32LSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Uint16 *dst;
- @@ -1838,6 +1988,8 @@
- static void SDLCALL
- SDL_Convert_F32LSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint16 *dst;
- @@ -1862,6 +2014,8 @@
- static void SDLCALL
- SDL_Convert_F32LSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Uint16 *dst;
- @@ -1886,6 +2040,8 @@
- static void SDLCALL
- SDL_Convert_F32LSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint16 *dst;
- @@ -1910,6 +2066,8 @@
- static void SDLCALL
- SDL_Convert_F32LSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint32 *dst;
- @@ -1933,6 +2091,8 @@
- static void SDLCALL
- SDL_Convert_F32LSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint32 *dst;
- @@ -1956,6 +2116,8 @@
- static void SDLCALL
- SDL_Convert_F32LSB_to_F32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- float *dst;
- @@ -1979,6 +2141,8 @@
- static void SDLCALL
- SDL_Convert_F32MSB_to_U8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Uint8 *dst;
- @@ -2003,6 +2167,8 @@
- static void SDLCALL
- SDL_Convert_F32MSB_to_S8(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint8 *dst;
- @@ -2027,6 +2193,8 @@
- static void SDLCALL
- SDL_Convert_F32MSB_to_U16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Uint16 *dst;
- @@ -2051,6 +2219,8 @@
- static void SDLCALL
- SDL_Convert_F32MSB_to_S16LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint16 *dst;
- @@ -2075,6 +2245,8 @@
- static void SDLCALL
- SDL_Convert_F32MSB_to_U16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Uint16 *dst;
- @@ -2099,6 +2271,8 @@
- static void SDLCALL
- SDL_Convert_F32MSB_to_S16MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint16 *dst;
- @@ -2123,6 +2297,8 @@
- static void SDLCALL
- SDL_Convert_F32MSB_to_S32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint32 *dst;
- @@ -2146,6 +2322,8 @@
- static void SDLCALL
- SDL_Convert_F32MSB_to_S32MSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- Sint32 *dst;
- @@ -2169,6 +2347,8 @@
- static void SDLCALL
- SDL_Convert_F32MSB_to_F32LSB(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const float *src;
- float *dst;
- @@ -2299,6 +2479,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 16;
- const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
- register int eps = 0;
- @@ -2331,6 +2513,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 16;
- const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
- register int eps = 0;
- @@ -2363,6 +2547,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -2400,6 +2586,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -2437,6 +2625,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -2484,6 +2674,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -2531,6 +2723,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 96;
- const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
- register int eps = 0;
- @@ -2588,6 +2782,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 96;
- const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
- register int eps = 0;
- @@ -2645,6 +2841,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U8, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -2712,6 +2910,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U8, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -2779,6 +2979,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 16;
- const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
- register int eps = 0;
- @@ -2811,6 +3013,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 16;
- const int dstsize = (int) (((double)(cvt->len_cvt/1)) * cvt->rate_incr) * 1;
- register int eps = 0;
- @@ -2843,6 +3047,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -2880,6 +3086,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -2917,6 +3125,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -2964,6 +3174,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -3011,6 +3223,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 96;
- const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
- register int eps = 0;
- @@ -3068,6 +3282,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 96;
- const int dstsize = (int) (((double)(cvt->len_cvt/6)) * cvt->rate_incr) * 6;
- register int eps = 0;
- @@ -3125,6 +3341,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S8, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -3192,6 +3410,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S8, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -3259,6 +3479,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -3291,6 +3513,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -3323,6 +3547,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -3360,6 +3586,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -3397,6 +3625,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -3444,6 +3674,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -3491,6 +3723,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- @@ -3548,6 +3782,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- @@ -3605,6 +3841,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16LSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -3672,6 +3910,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16LSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -3739,6 +3979,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -3771,6 +4013,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -3803,6 +4047,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -3840,6 +4086,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -3877,6 +4125,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -3924,6 +4174,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -3971,6 +4223,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- @@ -4028,6 +4282,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- @@ -4085,6 +4341,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16LSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -4152,6 +4410,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16LSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -4219,6 +4479,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -4251,6 +4513,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -4283,6 +4547,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -4320,6 +4586,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -4357,6 +4625,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -4404,6 +4674,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -4451,6 +4723,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- @@ -4508,6 +4782,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- @@ -4565,6 +4841,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_U16MSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -4632,6 +4910,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_U16MSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -4699,6 +4979,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -4731,6 +5013,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 32;
- const int dstsize = (int) (((double)(cvt->len_cvt/2)) * cvt->rate_incr) * 2;
- register int eps = 0;
- @@ -4763,6 +5047,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -4800,6 +5086,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -4837,6 +5125,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -4884,6 +5174,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -4931,6 +5223,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- @@ -4988,6 +5282,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 192;
- const int dstsize = (int) (((double)(cvt->len_cvt/12)) * cvt->rate_incr) * 12;
- register int eps = 0;
- @@ -5045,6 +5341,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S16MSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -5112,6 +5410,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S16MSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -5179,6 +5479,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -5211,6 +5513,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -5243,6 +5547,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -5280,6 +5586,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -5317,6 +5625,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -5364,6 +5674,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -5411,6 +5723,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- @@ -5468,6 +5782,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- @@ -5525,6 +5841,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32LSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- @@ -5592,6 +5910,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32LSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- @@ -5659,6 +5979,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -5691,6 +6013,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -5723,6 +6047,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -5760,6 +6086,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -5797,6 +6125,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -5844,6 +6174,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -5891,6 +6223,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- @@ -5948,6 +6282,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- @@ -6005,6 +6341,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_S32MSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- @@ -6072,6 +6410,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_S32MSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- @@ -6139,6 +6479,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -6171,6 +6513,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -6203,6 +6547,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -6240,6 +6586,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -6277,6 +6625,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -6324,6 +6674,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -6371,6 +6723,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- @@ -6428,6 +6782,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- @@ -6485,6 +6841,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32LSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- @@ -6552,6 +6910,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32LSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- @@ -6619,6 +6979,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -6651,6 +7013,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 1 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 64;
- const int dstsize = (int) (((double)(cvt->len_cvt/4)) * cvt->rate_incr) * 4;
- register int eps = 0;
- @@ -6683,6 +7047,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -6720,6 +7086,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 2 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 128;
- const int dstsize = (int) (((double)(cvt->len_cvt/8)) * cvt->rate_incr) * 8;
- register int eps = 0;
- @@ -6757,6 +7125,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -6804,6 +7174,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 4 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 256;
- const int dstsize = (int) (((double)(cvt->len_cvt/16)) * cvt->rate_incr) * 16;
- register int eps = 0;
- @@ -6851,6 +7223,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- @@ -6908,6 +7282,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 6 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 384;
- const int dstsize = (int) (((double)(cvt->len_cvt/24)) * cvt->rate_incr) * 24;
- register int eps = 0;
- @@ -6965,6 +7341,8 @@
- fprintf(stderr, "Upsample arbitrary (x%f) AUDIO_F32MSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- @@ -7032,6 +7410,8 @@
- fprintf(stderr, "Downsample arbitrary (x%f) AUDIO_F32MSB, 8 channels.\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - 512;
- const int dstsize = (int) (((double)(cvt->len_cvt/32)) * cvt->rate_incr) * 32;
- register int eps = 0;
- @@ -7102,6 +7482,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -7129,6 +7511,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7155,6 +7539,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 1 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -7184,6 +7570,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7210,6 +7598,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -7242,6 +7632,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7272,6 +7664,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 2 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -7308,6 +7702,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7338,6 +7734,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -7380,6 +7778,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7418,6 +7818,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 4 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -7468,6 +7870,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7506,6 +7910,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -7558,6 +7964,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7604,6 +8012,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 6 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -7668,6 +8078,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7714,6 +8126,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U8, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8 * 2;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -7776,6 +8190,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U8, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7830,6 +8246,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U8, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint8 *dst = ((Uint8 *) (cvt->buf + dstsize)) - 8 * 4;
- const Uint8 *src = ((Uint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -7908,6 +8326,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U8, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint8 *dst = (Uint8 *) cvt->buf;
- const Uint8 *src = (Uint8 *) cvt->buf;
- @@ -7962,6 +8382,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -7989,6 +8411,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8015,6 +8439,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -8044,6 +8470,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8070,6 +8498,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -8102,6 +8532,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8132,6 +8564,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -8168,6 +8602,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8198,6 +8634,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -8240,6 +8678,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8278,6 +8718,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -8328,6 +8770,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8366,6 +8810,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -8418,6 +8864,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8464,6 +8912,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -8528,6 +8978,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8574,6 +9026,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S8, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -8636,6 +9090,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S8, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8690,6 +9146,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S8, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint8 *dst = ((Sint8 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint8 *src = ((Sint8 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -8768,6 +9226,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S8, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint8 *dst = (Sint8 *) cvt->buf;
- const Sint8 *src = (Sint8 *) cvt->buf;
- @@ -8822,6 +9282,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -8849,6 +9311,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -8875,6 +9339,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -8904,6 +9370,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -8930,6 +9398,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -8962,6 +9432,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -8992,6 +9464,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -9028,6 +9502,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -9058,6 +9534,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -9100,6 +9578,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -9138,6 +9618,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -9188,6 +9670,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -9226,6 +9710,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -9278,6 +9764,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -9324,6 +9812,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -9388,6 +9878,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -9434,6 +9926,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -9496,6 +9990,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -9550,6 +10046,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -9628,6 +10126,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -9682,6 +10182,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -9709,6 +10211,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -9735,6 +10239,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -9764,6 +10270,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -9790,6 +10298,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -9822,6 +10332,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -9852,6 +10364,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -9888,6 +10402,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -9918,6 +10434,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -9960,6 +10478,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -9998,6 +10518,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -10048,6 +10570,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -10086,6 +10610,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -10138,6 +10664,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -10184,6 +10712,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -10248,6 +10778,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -10294,6 +10826,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -10356,6 +10890,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -10410,6 +10946,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -10488,6 +11026,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -10542,6 +11082,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -10569,6 +11111,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -10595,6 +11139,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 1 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -10624,6 +11170,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -10650,6 +11198,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -10682,6 +11232,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -10712,6 +11264,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 2 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -10748,6 +11302,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -10778,6 +11334,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -10820,6 +11378,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -10858,6 +11418,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 4 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -10908,6 +11470,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -10946,6 +11510,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -10998,6 +11564,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -11044,6 +11612,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 6 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -11108,6 +11678,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -11154,6 +11726,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_U16MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 2;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -11216,6 +11790,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_U16MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -11270,6 +11846,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_U16MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Uint16 *dst = ((Uint16 *) (cvt->buf + dstsize)) - 8 * 4;
- const Uint16 *src = ((Uint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -11348,6 +11926,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_U16MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Uint16 *dst = (Uint16 *) cvt->buf;
- const Uint16 *src = (Uint16 *) cvt->buf;
- @@ -11402,6 +11982,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -11429,6 +12011,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -11455,6 +12039,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -11484,6 +12070,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -11510,6 +12098,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -11542,6 +12132,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -11572,6 +12164,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -11608,6 +12202,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -11638,6 +12234,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -11680,6 +12278,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -11718,6 +12318,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -11768,6 +12370,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -11806,6 +12410,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -11858,6 +12464,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -11904,6 +12512,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -11968,6 +12578,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -12014,6 +12626,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S16MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -12076,6 +12690,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S16MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -12130,6 +12746,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S16MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint16 *dst = ((Sint16 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint16 *src = ((Sint16 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -12208,6 +12826,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S16MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint16 *dst = (Sint16 *) cvt->buf;
- const Sint16 *src = (Sint16 *) cvt->buf;
- @@ -12262,6 +12882,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -12289,6 +12911,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -12315,6 +12939,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -12344,6 +12970,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -12370,6 +12998,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -12402,6 +13032,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -12432,6 +13064,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -12468,6 +13102,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -12498,6 +13134,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -12540,6 +13178,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -12578,6 +13218,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -12628,6 +13270,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -12666,6 +13310,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -12718,6 +13364,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -12764,6 +13412,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -12828,6 +13478,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -12874,6 +13526,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -12936,6 +13590,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -12990,6 +13646,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -13068,6 +13726,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13122,6 +13782,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -13149,6 +13811,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13175,6 +13839,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 1 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -13204,6 +13870,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13230,6 +13898,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -13262,6 +13932,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13292,6 +13964,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 2 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -13328,6 +14002,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13358,6 +14034,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -13400,6 +14078,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13438,6 +14118,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 4 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -13488,6 +14170,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13526,6 +14210,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -13578,6 +14264,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13624,6 +14312,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 6 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -13688,6 +14378,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13734,6 +14426,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_S32MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 2;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -13796,6 +14490,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_S32MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13850,6 +14546,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_S32MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- Sint32 *dst = ((Sint32 *) (cvt->buf + dstsize)) - 8 * 4;
- const Sint32 *src = ((Sint32 *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -13928,6 +14626,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_S32MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- Sint32 *dst = (Sint32 *) cvt->buf;
- const Sint32 *src = (Sint32 *) cvt->buf;
- @@ -13982,6 +14682,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -14009,6 +14711,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14035,6 +14739,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -14064,6 +14770,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14090,6 +14798,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -14122,6 +14832,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14152,6 +14864,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -14188,6 +14902,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14218,6 +14934,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -14260,6 +14978,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14298,6 +15018,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -14348,6 +15070,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14386,6 +15110,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -14438,6 +15164,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14484,6 +15212,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -14548,6 +15278,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14594,6 +15326,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -14656,6 +15390,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14710,6 +15446,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -14788,6 +15526,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32LSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14842,6 +15582,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -14869,6 +15611,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14895,6 +15639,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 1 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 1;
- @@ -14924,6 +15670,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 1 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -14950,6 +15698,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -14982,6 +15732,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -15012,6 +15764,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 2 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 2;
- @@ -15048,6 +15802,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 2 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -15078,6 +15834,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -15120,6 +15878,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -15158,6 +15918,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 4 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 4;
- @@ -15208,6 +15970,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 4 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -15246,6 +16010,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -15298,6 +16064,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -15344,6 +16112,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 6 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 6;
- @@ -15408,6 +16178,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 6 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -15454,6 +16226,8 @@
- fprintf(stderr, "Upsample (x2) AUDIO_F32MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 2;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 2;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -15516,6 +16290,8 @@
- fprintf(stderr, "Downsample (x2) AUDIO_F32MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 2;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- @@ -15570,6 +16346,8 @@
- fprintf(stderr, "Upsample (x4) AUDIO_F32MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt * 4;
- float *dst = ((float *) (cvt->buf + dstsize)) - 8 * 4;
- const float *src = ((float *) (cvt->buf + cvt->len_cvt)) - 8;
- @@ -15648,6 +16426,8 @@
- fprintf(stderr, "Downsample (x4) AUDIO_F32MSB, 8 channels.\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt / 4;
- float *dst = (float *) cvt->buf;
- const float *src = (float *) cvt->buf;
- diff -ru SDL2-2.0.5/src/audio/sdlgenaudiocvt.pl SDL2-2.0.5_fix-warnings/src/audio/sdlgenaudiocvt.pl
- --- SDL2-2.0.5/src/audio/sdlgenaudiocvt.pl 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/audio/sdlgenaudiocvt.pl 2016-11-03 18:05:24.404400000 +0200
- @@ -211,6 +211,8 @@
- static void SDLCALL
- ${sym}(SDL_AudioCVT * cvt, SDL_AudioFormat format)
- {
- + (void)format;
- +
- int i;
- const $srctype *src;
- $tctype *dst;
- @@ -395,6 +397,8 @@
- fprintf(stderr, "$resample arbitrary (x%f) AUDIO_${from}, ${channels} channels.\\n", cvt->rate_incr);
- #endif
- + (void)format;
- +
- const int srcsize = cvt->len_cvt - $fudge;
- const int dstsize = (int) (((double)(cvt->len_cvt/${block_align})) * cvt->rate_incr) * ${block_align};
- register int eps = 0;
- @@ -537,6 +541,8 @@
- fprintf(stderr, "$resample (x${multiple}) AUDIO_${from}, ${channels} channels.\\n");
- #endif
- + (void)format;
- +
- const int dstsize = cvt->len_cvt $lencvtop $multiple;
- EOF
- diff -ru SDL2-2.0.5/src/audio/winmm/SDL_winmm.c SDL2-2.0.5_fix-warnings/src/audio/winmm/SDL_winmm.c
- --- SDL2-2.0.5/src/audio/winmm/SDL_winmm.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/audio/winmm/SDL_winmm.c 2016-11-04 01:24:45.299600000 +0200
- @@ -68,6 +68,10 @@
- CaptureSound(HWAVEIN hwi, UINT uMsg, DWORD_PTR dwInstance,
- DWORD_PTR dwParam1, DWORD_PTR dwParam2)
- {
- + (void)hwi;
- + (void)dwParam1;
- + (void)dwParam2;
- +
- SDL_AudioDevice *this = (SDL_AudioDevice *) dwInstance;
- /* Only service "buffer is filled" messages */
- @@ -84,6 +88,10 @@
- FillSound(HWAVEOUT hwo, UINT uMsg, DWORD_PTR dwInstance,
- DWORD_PTR dwParam1, DWORD_PTR dwParam2)
- {
- + (void)hwo;
- + (void)dwParam1;
- + (void)dwParam2;
- +
- SDL_AudioDevice *this = (SDL_AudioDevice *) dwInstance;
- /* Only service "buffer done playing" messages */
- @@ -141,7 +149,7 @@
- const int nextbuf = this->hidden->next_buffer;
- MMRESULT result;
- - SDL_assert(buflen == this->spec.size);
- + SDL_assert((Uint32)buflen == this->spec.size);
- /* Wait for an audio chunk to finish */
- WaitForSingleObject(this->hidden->audio_sem, INFINITE);
- @@ -245,6 +253,8 @@
- static int
- WINMM_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
- {
- + (void)devname;
- +
- SDL_AudioFormat test_format = SDL_FirstAudioFormat(this->spec.format);
- int valid_datatype = 0;
- MMRESULT result;
- diff -ru SDL2-2.0.5/src/cpuinfo/SDL_cpuinfo.c SDL2-2.0.5_fix-warnings/src/cpuinfo/SDL_cpuinfo.c
- --- SDL2-2.0.5/src/cpuinfo/SDL_cpuinfo.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/cpuinfo/SDL_cpuinfo.c 2016-11-03 18:29:57.627400000 +0200
- @@ -315,7 +315,7 @@
- int a, b, c, d;
- cpuid(0x80000000, a, b, c, d);
- - if (a >= 0x80000001) {
- + if ((unsigned int)a >= 0x80000001) {
- cpuid(0x80000001, a, b, c, d);
- return (d & 0x80000000);
- }
- diff -ru SDL2-2.0.5/src/events/SDL_events.c SDL2-2.0.5_fix-warnings/src/events/SDL_events.c
- --- SDL2-2.0.5/src/events/SDL_events.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/events/SDL_events.c 2016-11-03 18:36:39.690400000 +0200
- @@ -90,7 +90,7 @@
- SDL_StopEventLoop(void)
- {
- const char *report = SDL_GetHint("SDL_EVENT_QUEUE_STATISTICS");
- - int i;
- + size_t i;
- SDL_EventEntry *entry;
- SDL_SysWMEntry *wmmsg;
- diff -ru SDL2-2.0.5/src/events/SDL_keyboard.c SDL2-2.0.5_fix-warnings/src/events/SDL_keyboard.c
- --- SDL2-2.0.5/src/events/SDL_keyboard.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/events/SDL_keyboard.c 2016-11-03 18:37:32.398400000 +0200
- @@ -904,7 +904,7 @@
- SDL_Scancode SDL_GetScancodeFromName(const char *name)
- {
- - int i;
- + size_t i;
- if (!name || !*name) {
- SDL_InvalidParamError("name");
- diff -ru SDL2-2.0.5/src/events/SDL_mouse.c SDL2-2.0.5_fix-warnings/src/events/SDL_mouse.c
- --- SDL2-2.0.5/src/events/SDL_mouse.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/events/SDL_mouse.c 2016-11-03 18:40:46.878400000 +0200
- @@ -139,6 +139,10 @@
- static SDL_bool
- SDL_UpdateMouseFocus(SDL_Window * window, int x, int y, Uint32 buttonstate)
- {
- +#ifndef SUPPORT_DRAG_OUTSIDE_WINDOW
- + (void)buttonstate;
- +#endif
- +
- SDL_Mouse *mouse = SDL_GetMouse();
- SDL_bool inWindow = SDL_TRUE;
- diff -ru SDL2-2.0.5/src/events/SDL_touch.c SDL2-2.0.5_fix-warnings/src/events/SDL_touch.c
- --- SDL2-2.0.5/src/events/SDL_touch.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/events/SDL_touch.c 2016-11-03 18:42:33.420400000 +0200
- @@ -129,6 +129,8 @@
- int
- SDL_AddTouch(SDL_TouchID touchID, const char *name)
- {
- + (void)name;
- +
- SDL_Touch **touchDevices;
- int index;
- diff -ru SDL2-2.0.5/src/file/SDL_rwops.c SDL2-2.0.5_fix-warnings/src/file/SDL_rwops.c
- --- SDL2-2.0.5/src/file/SDL_rwops.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/file/SDL_rwops.c 2016-11-03 18:47:18.605400000 +0200
- @@ -216,7 +216,7 @@
- SDL_Error(SDL_EFREAD);
- return 0;
- }
- - read_ahead = SDL_min(total_need, (int) byte_read);
- + read_ahead = SDL_min(total_need, (size_t) byte_read);
- SDL_memcpy(ptr, context->hidden.windowsio.buffer.data, read_ahead);
- context->hidden.windowsio.buffer.size = byte_read;
- context->hidden.windowsio.buffer.left = byte_read - read_ahead;
- @@ -446,6 +446,11 @@
- static size_t SDLCALL
- mem_writeconst(SDL_RWops * context, const void *ptr, size_t size, size_t num)
- {
- + (void)context;
- + (void)ptr;
- + (void)size;
- + (void)num;
- +
- SDL_SetError("Can't write to read-only memory");
- return 0;
- }
- diff -ru SDL2-2.0.5/src/haptic/windows/SDL_dinputhaptic.c SDL2-2.0.5_fix-warnings/src/haptic/windows/SDL_dinputhaptic.c
- --- SDL2-2.0.5/src/haptic/windows/SDL_dinputhaptic.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/haptic/windows/SDL_dinputhaptic.c 2016-11-04 10:55:07.514200000 +0200
- @@ -51,6 +51,8 @@
- static int
- DI_SetError(const char *str, HRESULT err)
- {
- + (void)err;
- +
- /*
- SDL_SetError("Haptic: %s - %s: %s", str,
- DXGetErrorString8A(err), DXGetErrorDescription8A(err));
- @@ -914,7 +916,20 @@
- /*
- * Gets the effect type from the generic SDL haptic effect wrapper.
- */
- -static REFGUID
- +/*
- + * Original return type was REFGUID, which according to the MS docs should be:
- + * typedef GUID* REFGUID;
- + * https://msdn.microsoft.com/en-us/library/cc237815.aspx
- + *
- + * However in TDM-GCC 5.1.0 x64 it is #define'd as:
- + * #define REFGUID const GUID *__MIDL_CONST
- + * c:\TDM-GCC-64\x86_64-w64-mingw32\include\guiddef.h:113
- + *
- + * The extra const qualifier is ignored for returned types, causing a
- + * "-Wignored-qualifiers" warning.
- + *
- + */
- +static const GUID *
- SDL_SYS_HapticEffectType(SDL_HapticEffect * effect)
- {
- switch (effect->type) {
- @@ -1035,6 +1050,8 @@
- int
- SDL_DINPUT_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect, Uint32 iterations)
- {
- + (void)haptic;
- +
- HRESULT ret;
- DWORD iter;
- @@ -1056,6 +1073,8 @@
- int
- SDL_DINPUT_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
- {
- + (void)haptic;
- +
- HRESULT ret;
- ret = IDirectInputEffect_Stop(effect->hweffect->ref);
- @@ -1068,6 +1087,8 @@
- void
- SDL_DINPUT_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
- {
- + (void)haptic;
- +
- HRESULT ret;
- ret = IDirectInputEffect_Unload(effect->hweffect->ref);
- @@ -1080,6 +1101,8 @@
- int
- SDL_DINPUT_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect *effect)
- {
- + (void)haptic;
- +
- HRESULT ret;
- DWORD status;
- diff -ru SDL2-2.0.5/src/haptic/windows/SDL_xinputhaptic.c SDL2-2.0.5_fix-warnings/src/haptic/windows/SDL_xinputhaptic.c
- --- SDL2-2.0.5/src/haptic/windows/SDL_xinputhaptic.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/haptic/windows/SDL_xinputhaptic.c 2016-11-04 10:57:44.519200000 +0200
- @@ -311,6 +311,8 @@
- int
- SDL_XINPUT_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect)
- {
- + (void)effect;
- +
- XINPUT_VIBRATION vibration = { 0, 0 };
- SDL_LockMutex(haptic->hwdata->mutex);
- haptic->hwdata->stopTicks = 0;
- @@ -327,30 +329,43 @@
- int
- SDL_XINPUT_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect *effect)
- {
- + (void)haptic;
- + (void)effect;
- +
- return SDL_Unsupported();
- }
- int
- SDL_XINPUT_HapticSetGain(SDL_Haptic * haptic, int gain)
- {
- + (void)haptic;
- + (void)gain;
- +
- return SDL_Unsupported();
- }
- int
- SDL_XINPUT_HapticSetAutocenter(SDL_Haptic * haptic, int autocenter)
- {
- + (void)haptic;
- + (void)autocenter;
- +
- return SDL_Unsupported();
- }
- int
- SDL_XINPUT_HapticPause(SDL_Haptic * haptic)
- {
- + (void)haptic;
- +
- return SDL_Unsupported();
- }
- int
- SDL_XINPUT_HapticUnpause(SDL_Haptic * haptic)
- {
- + (void)haptic;
- +
- return SDL_Unsupported();
- }
- diff -ru SDL2-2.0.5/src/joystick/SDL_gamecontroller.c SDL2-2.0.5_fix-warnings/src/joystick/SDL_gamecontroller.c
- --- SDL2-2.0.5/src/joystick/SDL_gamecontroller.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/joystick/SDL_gamecontroller.c 2016-11-03 18:53:09.017400000 +0200
- @@ -140,6 +140,8 @@
- */
- int SDL_GameControllerEventWatcher(void *userdata, SDL_Event * event)
- {
- + (void)userdata;
- +
- switch(event->type) {
- case SDL_JOYAXISMOTION:
- {
- @@ -450,7 +452,7 @@
- char szGameButton[20];
- char szJoystickButton[20];
- SDL_bool bGameButton = SDL_TRUE;
- - int i = 0;
- + size_t i = 0;
- const char *pchPos = pchString;
- SDL_memset(szGameButton, 0x0, sizeof(szGameButton));
- diff -ru SDL2-2.0.5/src/joystick/SDL_joystick.c SDL2-2.0.5_fix-warnings/src/joystick/SDL_joystick.c
- --- SDL2-2.0.5/src/joystick/SDL_joystick.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/joystick/SDL_joystick.c 2016-11-03 19:07:24.507400000 +0200
- @@ -39,6 +39,10 @@
- static void
- SDL_JoystickAllowBackgroundEventsChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
- {
- + (void)userdata;
- + (void)name;
- + (void)oldValue;
- +
- if (hint && *hint == '1') {
- SDL_joystick_allows_background_events = SDL_TRUE;
- } else {
- @@ -843,13 +847,13 @@
- void SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, char *pszGUID, int cbGUID)
- {
- static const char k_rgchHexToASCII[] = "0123456789abcdef";
- - int i;
- + size_t i;
- if ((pszGUID == NULL) || (cbGUID <= 0)) {
- return;
- }
- - for (i = 0; i < sizeof(guid.data) && i < (cbGUID-1)/2; i++) {
- + for (i = 0; i < sizeof(guid.data) && i < (size_t)((cbGUID-1)/2); i++) {
- /* each input byte writes 2 ascii chars, and might write a null byte. */
- /* If we don't have room for next input byte, stop */
- unsigned char c = guid.data[i];
- diff -ru SDL2-2.0.5/src/joystick/windows/SDL_dinputjoystick.c SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_dinputjoystick.c
- --- SDL2-2.0.5/src/joystick/windows/SDL_dinputjoystick.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_dinputjoystick.c 2016-11-04 01:34:52.647800000 +0200
- @@ -277,7 +277,7 @@
- /* Go through RAWINPUT (WinXP and later) to find HID devices. */
- /* Cache this if we end up using it. */
- if (SDL_RawDevList == NULL) {
- - if ((GetRawInputDeviceList(NULL, &SDL_RawDevListCount, sizeof(RAWINPUTDEVICELIST)) == -1) || (!SDL_RawDevListCount)) {
- + if ((GetRawInputDeviceList(NULL, &SDL_RawDevListCount, sizeof(RAWINPUTDEVICELIST)) == (UINT)-1) || (!SDL_RawDevListCount)) {
- return SDL_FALSE; /* oh well. */
- }
- @@ -287,7 +287,7 @@
- return SDL_FALSE;
- }
- - if (GetRawInputDeviceList(SDL_RawDevList, &SDL_RawDevListCount, sizeof(RAWINPUTDEVICELIST)) == -1) {
- + if (GetRawInputDeviceList(SDL_RawDevList, &SDL_RawDevListCount, sizeof(RAWINPUTDEVICELIST)) == (UINT)-1) {
- SDL_free(SDL_RawDevList);
- SDL_RawDevList = NULL;
- return SDL_FALSE; /* oh well. */
- diff -ru SDL2-2.0.5/src/joystick/windows/SDL_windowsjoystick.c SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_windowsjoystick.c
- --- SDL2-2.0.5/src/joystick/windows/SDL_windowsjoystick.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_windowsjoystick.c 2016-11-04 01:36:14.581000000 +0200
- @@ -212,6 +212,8 @@
- static int
- SDL_JoystickThread(void *_data)
- {
- + (void)_data;
- +
- SDL_DeviceNotificationData notification_data;
- #if SDL_JOYSTICK_XINPUT
- diff -ru SDL2-2.0.5/src/joystick/windows/SDL_xinputjoystick.c SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_xinputjoystick.c
- --- SDL2-2.0.5/src/joystick/windows/SDL_xinputjoystick.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/joystick/windows/SDL_xinputjoystick.c 2016-11-04 01:36:46.155400000 +0200
- @@ -353,6 +353,7 @@
- void
- SDL_XINPUT_JoystickClose(SDL_Joystick * joystick)
- {
- + (void)joystick;
- }
- void
- diff -ru SDL2-2.0.5/src/libm/e_pow.c SDL2-2.0.5_fix-warnings/src/libm/e_pow.c
- --- SDL2-2.0.5/src/libm/e_pow.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/libm/e_pow.c 2016-11-03 19:09:42.450400000 +0200
- @@ -140,7 +140,7 @@
- k = (iy >> 20) - 0x3ff; /* exponent */
- if (k > 20) {
- j = ly >> (52 - k);
- - if ((j << (52 - k)) == ly)
- + if ((u_int32_t)(j << (52 - k)) == ly)
- yisint = 2 - (j & 1);
- } else if (ly == 0) {
- j = iy >> (20 - k);
- diff -ru SDL2-2.0.5/src/libm/e_sqrt.c SDL2-2.0.5_fix-warnings/src/libm/e_sqrt.c
- --- SDL2-2.0.5/src/libm/e_sqrt.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/libm/e_sqrt.c 2016-11-03 19:14:06.904400000 +0200
- @@ -168,7 +168,7 @@
- t = s0;
- if ((t < ix0) || ((t == ix0) && (t1 <= ix1))) {
- s1 = t1 + r;
- - if (((t1 & sign) == sign) && (s1 & sign) == 0)
- + if (((t1 & sign) == (u_int32_t)sign) && (s1 & sign) == 0)
- s0 += 1;
- ix0 -= t;
- if (ix1 < t1)
- diff -ru SDL2-2.0.5/src/libm/k_rem_pio2.c SDL2-2.0.5_fix-warnings/src/libm/k_rem_pio2.c
- --- SDL2-2.0.5/src/libm/k_rem_pio2.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/libm/k_rem_pio2.c 2016-11-03 19:16:27.743400000 +0200
- @@ -183,7 +183,7 @@
- double z, fw, f[20], fq[20], q[20];
- /* initialize jk */
- - SDL_assert((prec >= 0) && (prec < SDL_arraysize(init_jk)));
- + SDL_assert((prec >= 0) && ((size_t)prec < SDL_arraysize(init_jk)));
- jk = init_jk[prec];
- SDL_assert((jk >= 2) && (jk <= 6));
- jp = jk;
- diff -ru SDL2-2.0.5/src/main/windows/SDL_windows_main.c SDL2-2.0.5_fix-warnings/src/main/windows/SDL_windows_main.c
- --- SDL2-2.0.5/src/main/windows/SDL_windows_main.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/main/windows/SDL_windows_main.c 2016-11-04 11:03:56.223200000 +0200
- @@ -168,6 +168,9 @@
- int
- console_ansi_main(int argc, char *argv[])
- {
- + (void)argc;
- + (void)argv;
- +
- return main_getcmdline();
- }
- @@ -177,6 +180,8 @@
- int
- console_wmain(int argc, wchar_t *wargv[], wchar_t *wenvp)
- {
- + (void)wenvp;
- +
- int retval = 0;
- char **argv = SDL_stack_alloc(char*, argc + 1);
- int i;
- @@ -199,6 +204,11 @@
- int WINAPI
- WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw)
- {
- + (void)hInst;
- + (void)hPrev;
- + (void)szCmdLine;
- + (void)sw;
- +
- return main_getcmdline();
- }
- diff -ru SDL2-2.0.5/src/power/windows/SDL_syspower.c SDL2-2.0.5_fix-warnings/src/power/windows/SDL_syspower.c
- --- SDL2-2.0.5/src/power/windows/SDL_syspower.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/power/windows/SDL_syspower.c 2016-11-04 10:59:37.326200000 +0200
- @@ -62,7 +62,7 @@
- if (pct != 255) { /* 255 == unknown */
- *percent = (pct > 100) ? 100 : pct; /* clamp between 0%, 100% */
- }
- - if (secs != 0xFFFFFFFF) { /* ((DWORD)-1) == unknown */
- + if ((unsigned int)secs != 0xFFFFFFFF) { /* ((DWORD)-1) == unknown */
- *seconds = secs;
- }
- }
- diff -ru SDL2-2.0.5/src/render/direct3d/SDL_render_d3d.c SDL2-2.0.5_fix-warnings/src/render/direct3d/SDL_render_d3d.c
- --- SDL2-2.0.5/src/render/direct3d/SDL_render_d3d.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/render/direct3d/SDL_render_d3d.c 2016-11-03 19:39:53.963400000 +0200
- @@ -881,6 +881,11 @@
- static int
- D3D_RecreateTextureRep(IDirect3DDevice9 *device, D3D_TextureRep *texture, Uint32 format, int w, int h)
- {
- + (void)device;
- + (void)format;
- + (void)w;
- + (void)h;
- +
- if (texture->texture) {
- IDirect3DTexture9_Release(texture->texture);
- texture->texture = NULL;
- @@ -1917,6 +1922,8 @@
- static void
- D3D_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)
- {
- + (void)renderer;
- +
- D3D_TextureData *data = (D3D_TextureData *) texture->driverdata;
- if (!data) {
- diff -ru SDL2-2.0.5/src/render/direct3d11/SDL_render_d3d11.c SDL2-2.0.5_fix-warnings/src/render/direct3d11/SDL_render_d3d11.c
- --- SDL2-2.0.5/src/render/direct3d11/SDL_render_d3d11.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/render/direct3d11/SDL_render_d3d11.c 2016-11-03 19:59:37.904400000 +0200
- @@ -149,7 +149,7 @@
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- -#pragma GCC diagnostic ignored "-Wunused-const-variable"
- +#pragma GCC diagnostic ignored "-Wunused-variable"
- #endif
- static const GUID SDL_IID_IDXGIFactory2 = { 0x50c83a1c, 0xe072, 0x4c48, { 0x87, 0xb0, 0x36, 0x30, 0xfa, 0x36, 0xa6, 0xd0 } };
- @@ -1682,7 +1682,11 @@
- IDXGIDevice3_Trim(dxgiDevice);
- SAFE_RELEASE(dxgiDevice);
- +#else
- + (void)renderer;
- #endif
- +#else
- + (void)renderer;
- #endif
- }
- @@ -1856,6 +1860,8 @@
- D3D11_DestroyTexture(SDL_Renderer * renderer,
- SDL_Texture * texture)
- {
- + (void)renderer;
- +
- D3D11_TextureData *data = (D3D11_TextureData *)texture->driverdata;
- if (!data) {
- @@ -1921,7 +1927,7 @@
- src = (const Uint8 *)pixels;
- dst = textureMemory.pData;
- length = w * SDL_BYTESPERPIXEL(format);
- - if (length == pitch && length == textureMemory.RowPitch) {
- + if (length == (UINT)pitch && length == textureMemory.RowPitch) {
- SDL_memcpy(dst, src, length*h);
- } else {
- if (length > (UINT)pitch) {
- diff -ru SDL2-2.0.5/src/render/opengl/SDL_render_gl.c SDL2-2.0.5_fix-warnings/src/render/opengl/SDL_render_gl.c
- --- SDL2-2.0.5/src/render/opengl/SDL_render_gl.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/render/opengl/SDL_render_gl.c 2016-11-03 20:02:09.622400000 +0200
- @@ -580,6 +580,8 @@
- static void
- GL_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
- {
- + (void)renderer;
- +
- if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED ||
- event->event == SDL_WINDOWEVENT_SHOWN ||
- event->event == SDL_WINDOWEVENT_HIDDEN) {
- @@ -610,6 +612,8 @@
- convert_format(GL_RenderData *renderdata, Uint32 pixel_format,
- GLint* internalFormat, GLenum* format, GLenum* type)
- {
- + (void)renderdata;
- +
- switch (pixel_format) {
- case SDL_PIXELFORMAT_ARGB8888:
- *internalFormat = GL_RGBA8;
- @@ -949,6 +953,8 @@
- GL_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
- const SDL_Rect * rect, void **pixels, int *pitch)
- {
- + (void)renderer;
- +
- GL_TextureData *data = (GL_TextureData *) texture->driverdata;
- data->locked_rect = *rect;
- diff -ru SDL2-2.0.5/src/render/SDL_yuv_sw.c SDL2-2.0.5_fix-warnings/src/render/SDL_yuv_sw.c
- --- SDL2-2.0.5/src/render/SDL_yuv_sw.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/render/SDL_yuv_sw.c 2016-11-03 19:17:40.513400000 +0200
- @@ -1267,6 +1267,7 @@
- void
- SDL_SW_UnlockYUVTexture(SDL_SW_YUVTexture * swdata)
- {
- + (void)swdata;
- }
- int
- diff -ru SDL2-2.0.5/src/render/software/SDL_render_sw.c SDL2-2.0.5_fix-warnings/src/render/software/SDL_render_sw.c
- --- SDL2-2.0.5/src/render/software/SDL_render_sw.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/render/software/SDL_render_sw.c 2016-11-03 20:13:26.889400000 +0200
- @@ -181,6 +181,8 @@
- SDL_Renderer *
- SW_CreateRenderer(SDL_Window * window, Uint32 flags)
- {
- + (void)flags;
- +
- SDL_Surface *surface;
- surface = SDL_GetWindowSurface(window);
- @@ -223,6 +225,8 @@
- static int
- SW_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
- {
- + (void)renderer;
- +
- int bpp;
- Uint32 Rmask, Gmask, Bmask, Amask;
- @@ -252,6 +256,8 @@
- static int
- SW_SetTextureColorMod(SDL_Renderer * renderer, SDL_Texture * texture)
- {
- + (void)renderer;
- +
- SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
- /* If the color mod is ever enabled (non-white), permanently disable RLE (which doesn't support
- * color mod) to avoid potentially frequent RLE encoding/decoding.
- @@ -266,6 +272,8 @@
- static int
- SW_SetTextureAlphaMod(SDL_Renderer * renderer, SDL_Texture * texture)
- {
- + (void)renderer;
- +
- SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
- /* If the texture ever has multiple alpha values (surface alpha plus alpha channel), permanently
- * disable RLE (which doesn't support this) to avoid potentially frequent RLE encoding/decoding.
- @@ -279,6 +287,8 @@
- static int
- SW_SetTextureBlendMode(SDL_Renderer * renderer, SDL_Texture * texture)
- {
- + (void)renderer;
- +
- SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
- /* If add or mod blending are ever enabled, permanently disable RLE (which doesn't support
- * them) to avoid potentially frequent RLE encoding/decoding.
- @@ -293,6 +303,8 @@
- SW_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
- const SDL_Rect * rect, const void *pixels, int pitch)
- {
- + (void)renderer;
- +
- SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
- Uint8 *src, *dst;
- int row;
- @@ -319,6 +331,8 @@
- SW_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
- const SDL_Rect * rect, void **pixels, int *pitch)
- {
- + (void)renderer;
- +
- SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
- *pixels =
- @@ -331,6 +345,8 @@
- static void
- SW_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture)
- {
- + (void)renderer;
- + (void)texture;
- }
- static int
- @@ -775,6 +791,8 @@
- static void
- SW_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture)
- {
- + (void)renderer;
- +
- SDL_Surface *surface = (SDL_Surface *) texture->driverdata;
- SDL_FreeSurface(surface);
- diff -ru SDL2-2.0.5/src/SDL_log.c SDL2-2.0.5_fix-warnings/src/SDL_log.c
- --- SDL2-2.0.5/src/SDL_log.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/SDL_log.c 2016-11-03 16:42:43.358400000 +0200
- @@ -304,7 +304,7 @@
- SDL_stack_free(message);
- }
- -#if defined(__WIN32__)
- +#if defined(__WIN32__) && !defined(HAVE_STDIO_H) && !defined(__WINRT__)
- /* Flag tracking the attachment of the console: 0=unattached, 1=attached, -1=error */
- static int consoleAttached = 0;
- @@ -320,6 +320,9 @@
- /* Way too many allocations here, urgh */
- /* Note: One can't call SDL_SetError here, since that function itself logs. */
- {
- + (void)userdata;
- + (void)category;
- +
- char *output;
- size_t length;
- LPTSTR tstr;
- diff -ru SDL2-2.0.5/src/stdlib/SDL_iconv.c SDL2-2.0.5_fix-warnings/src/stdlib/SDL_iconv.c
- --- SDL2-2.0.5/src/stdlib/SDL_iconv.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/stdlib/SDL_iconv.c 2016-11-03 20:14:38.032400000 +0200
- @@ -208,7 +208,7 @@
- {
- int src_fmt = ENCODING_UNKNOWN;
- int dst_fmt = ENCODING_UNKNOWN;
- - int i;
- + size_t i;
- char fromcode_buffer[64];
- char tocode_buffer[64];
- diff -ru SDL2-2.0.5/src/stdlib/SDL_malloc.c SDL2-2.0.5_fix-warnings/src/stdlib/SDL_malloc.c
- --- SDL2-2.0.5/src/stdlib/SDL_malloc.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/stdlib/SDL_malloc.c 2016-11-03 20:19:49.371400000 +0200
- @@ -2580,7 +2580,9 @@
- ((MCHUNK_SIZE & (MCHUNK_SIZE - SIZE_T_ONE)) != 0) ||
- ((mparams.granularity & (mparams.granularity - SIZE_T_ONE)) != 0)
- || ((mparams.page_size & (mparams.page_size - SIZE_T_ONE)) != 0))
- + {
- ABORT;
- + }
- }
- return 0;
- }
- @@ -2947,6 +2949,7 @@
- {
- if (!PREACTION(m)) {
- size_t maxfp = 0;
- + (void)maxfp;
- size_t fp = 0;
- size_t used = 0;
- check_malloc_state(m);
- @@ -3169,8 +3172,9 @@
- else \
- XP->child[1] = R;\
- }\
- - else\
- + else {\
- CORRUPTION_ERROR_ACTION(M);\
- + }\
- if (R != 0) {\
- if (RTCHECK(ok_address(M, R))) {\
- tchunkptr C0, C1;\
- @@ -3180,20 +3184,23 @@
- R->child[0] = C0;\
- C0->parent = R;\
- }\
- - else\
- + else {\
- CORRUPTION_ERROR_ACTION(M);\
- + }\
- }\
- if ((C1 = X->child[1]) != 0) {\
- if (RTCHECK(ok_address(M, C1))) {\
- R->child[1] = C1;\
- C1->parent = R;\
- }\
- - else\
- + else {\
- CORRUPTION_ERROR_ACTION(M);\
- + }\
- }\
- }\
- - else\
- + else {\
- CORRUPTION_ERROR_ACTION(M);\
- + }\
- }\
- }\
- }
- diff -ru SDL2-2.0.5/src/stdlib/SDL_string.c SDL2-2.0.5_fix-warnings/src/stdlib/SDL_string.c
- --- SDL2-2.0.5/src/stdlib/SDL_string.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/stdlib/SDL_string.c 2016-11-03 20:22:32.518400000 +0200
- @@ -500,7 +500,7 @@
- trailing_bytes = UTF8_TrailingBytes(c);
- if (trailing_bytes)
- {
- - if (bytes - i != trailing_bytes + 1)
- + if (bytes - i != (size_t)(trailing_bytes + 1))
- bytes = i;
- break;
- diff -ru SDL2-2.0.5/src/test/SDL_test_common.c SDL2-2.0.5_fix-warnings/src/test/SDL_test_common.c
- --- SDL2-2.0.5/src/test/SDL_test_common.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/test/SDL_test_common.c 2016-11-04 11:05:16.157200000 +0200
- @@ -594,7 +594,7 @@
- fprintf(stderr, " Flags: 0x%8.8X", info->flags);
- fprintf(stderr, " (");
- count = 0;
- - for (i = 0; i < sizeof(info->flags) * 8; ++i) {
- + for (i = 0; (size_t)i < sizeof(info->flags) * 8; ++i) {
- Uint32 flag = (1 << i);
- if (info->flags & flag) {
- if (count > 0) {
- diff -ru SDL2-2.0.5/src/timer/windows/SDL_systimer.c SDL2-2.0.5_fix-warnings/src/timer/windows/SDL_systimer.c
- --- SDL2-2.0.5/src/timer/windows/SDL_systimer.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/timer/windows/SDL_systimer.c 2016-11-04 11:00:45.282200000 +0200
- @@ -63,6 +63,9 @@
- static void
- SDL_TimerResolutionChanged(void *userdata, const char *name, const char *oldValue, const char *hint)
- {
- + (void)userdata;
- + (void)name;
- +
- UINT uPeriod;
- /* Unless the hint says otherwise, let's have good sleep precision */
- diff -ru SDL2-2.0.5/src/video/dummy/SDL_nullevents.c SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullevents.c
- --- SDL2-2.0.5/src/video/dummy/SDL_nullevents.c 2016-10-20 07:56:27.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullevents.c 2016-11-03 21:03:51.509400000 +0200
- @@ -34,6 +34,7 @@
- DUMMY_PumpEvents(_THIS)
- {
- /* do nothing. */
- + (void)_this;
- }
- #endif /* SDL_VIDEO_DRIVER_DUMMY */
- diff -ru SDL2-2.0.5/src/video/dummy/SDL_nullframebuffer.c SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullframebuffer.c
- --- SDL2-2.0.5/src/video/dummy/SDL_nullframebuffer.c 2016-10-20 07:56:27.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullframebuffer.c 2016-11-03 21:05:47.213400000 +0200
- @@ -30,6 +30,8 @@
- int SDL_DUMMY_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch)
- {
- + (void)_this;
- +
- SDL_Surface *surface;
- const Uint32 surface_format = SDL_PIXELFORMAT_RGB888;
- int w, h;
- @@ -58,6 +60,10 @@
- int SDL_DUMMY_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects)
- {
- + (void)_this;
- + (void)rects;
- + (void)numrects;
- +
- static int frame_number;
- SDL_Surface *surface;
- @@ -78,6 +84,8 @@
- void SDL_DUMMY_DestroyWindowFramebuffer(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- SDL_Surface *surface;
- surface = (SDL_Surface *) SDL_SetWindowData(window, DUMMY_SURFACE, NULL);
- diff -ru SDL2-2.0.5/src/video/dummy/SDL_nullvideo.c SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullvideo.c
- --- SDL2-2.0.5/src/video/dummy/SDL_nullvideo.c 2016-10-20 07:56:27.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/dummy/SDL_nullvideo.c 2016-11-03 21:08:35.764400000 +0200
- @@ -76,6 +76,8 @@
- static SDL_VideoDevice *
- DUMMY_CreateDevice(int devindex)
- {
- + (void)devindex;
- +
- SDL_VideoDevice *device;
- /* Initialize all variables that we clean on shutdown */
- @@ -130,12 +132,17 @@
- static int
- DUMMY_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode)
- {
- + (void)_this;
- + (void)display;
- + (void)mode;
- +
- return 0;
- }
- void
- DUMMY_VideoQuit(_THIS)
- {
- + (void)_this;
- }
- #endif /* SDL_VIDEO_DRIVER_DUMMY */
- diff -ru SDL2-2.0.5/src/video/SDL_blit.c SDL2-2.0.5_fix-warnings/src/video/SDL_blit.c
- --- SDL2-2.0.5/src/video/SDL_blit.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/SDL_blit.c 2016-11-03 20:24:46.056400000 +0200
- @@ -201,7 +201,7 @@
- /* Check CPU features */
- flagcheck = entries[i].cpu;
- - if ((flagcheck & features) != flagcheck) {
- + if ((flagcheck & features) != (Uint32)flagcheck) {
- continue;
- }
- diff -ru SDL2-2.0.5/src/video/SDL_blit_N.c SDL2-2.0.5_fix-warnings/src/video/SDL_blit_N.c
- --- SDL2-2.0.5/src/video/SDL_blit_N.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/SDL_blit_N.c 2016-11-03 20:29:10.511400000 +0200
- @@ -2572,7 +2572,7 @@
- MASKOK(dstfmt->Gmask, table[which].dstG) &&
- MASKOK(dstfmt->Bmask, table[which].dstB) &&
- dstfmt->BytesPerPixel == table[which].dstbpp &&
- - (a_need & table[which].alpha) == a_need &&
- + (a_need & table[which].alpha) == (unsigned int)a_need &&
- ((table[which].blit_features & GetBlitFeatures()) ==
- table[which].blit_features))
- break;
- diff -ru SDL2-2.0.5/src/video/SDL_bmp.c SDL2-2.0.5_fix-warnings/src/video/SDL_bmp.c
- --- SDL2-2.0.5/src/video/SDL_bmp.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/SDL_bmp.c 2016-11-03 20:42:27.017400000 +0200
- @@ -399,7 +399,7 @@
- default:
- if (SDL_RWread(src, bits, 1, surface->pitch)
- - != surface->pitch) {
- + != (unsigned int)surface->pitch) {
- SDL_Error(SDL_EFREAD);
- was_error = SDL_TRUE;
- goto done;
- @@ -661,7 +661,7 @@
- pad = ((bw % 4) ? (4 - (bw % 4)) : 0);
- while (bits > (Uint8 *) surface->pixels) {
- bits -= surface->pitch;
- - if (SDL_RWwrite(dst, bits, 1, bw) != bw) {
- + if (SDL_RWwrite(dst, bits, 1, bw) != (const unsigned int)bw) {
- SDL_Error(SDL_EFWRITE);
- break;
- }
- diff -ru SDL2-2.0.5/src/video/SDL_pixels.c SDL2-2.0.5_fix-warnings/src/video/SDL_pixels.c
- --- SDL2-2.0.5/src/video/SDL_pixels.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/SDL_pixels.c 2016-11-03 20:45:00.682400000 +0200
- @@ -939,6 +939,8 @@
- static Uint8 *
- MapNto1(SDL_PixelFormat * src, SDL_PixelFormat * dst, int *identical)
- {
- + (void)src;
- +
- /* Generate a 256 color dither palette */
- SDL_Palette dithered;
- SDL_Color colors[256];
- diff -ru SDL2-2.0.5/src/video/SDL_shape.c SDL2-2.0.5_fix-warnings/src/video/SDL_shape.c
- --- SDL2-2.0.5/src/video/SDL_shape.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/SDL_shape.c 2016-11-03 20:46:12.455400000 +0200
- @@ -165,7 +165,7 @@
- }
- if(last_opaque == -1)
- last_opaque = pixel_opaque;
- - if(last_opaque != pixel_opaque) {
- + if(last_opaque != (int)pixel_opaque) {
- const int halfwidth = dimensions.w / 2;
- const int halfheight = dimensions.h / 2;
- diff -ru SDL2-2.0.5/src/video/SDL_surface.c SDL2-2.0.5_fix-warnings/src/video/SDL_surface.c
- --- SDL2-2.0.5/src/video/SDL_surface.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/SDL_surface.c 2016-11-03 20:59:27.285400000 +0200
- @@ -36,6 +36,8 @@
- SDL_CreateRGBSurfaceWithFormat(Uint32 flags, int width, int height, int depth,
- Uint32 format)
- {
- + (void)depth;
- +
- SDL_Surface *surface;
- /* The flags are no longer used, make the compiler happy */
- diff -ru SDL2-2.0.5/src/video/SDL_video.c SDL2-2.0.5_fix-warnings/src/video/SDL_video.c
- --- SDL2-2.0.5/src/video/SDL_video.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/SDL_video.c 2016-11-03 21:02:33.225400000 +0200
- @@ -248,6 +248,8 @@
- static int
- SDL_CreateWindowTexture(SDL_VideoDevice *unused, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch)
- {
- + (void)unused;
- +
- SDL_WindowTextureData *data;
- data = SDL_GetWindowData(window, SDL_WINDOWTEXTUREDATA);
- @@ -353,6 +355,8 @@
- static int
- SDL_UpdateWindowTexture(SDL_VideoDevice *unused, SDL_Window * window, const SDL_Rect * rects, int numrects)
- {
- + (void)unused;
- +
- SDL_WindowTextureData *data;
- SDL_Rect rect;
- void *src;
- @@ -383,6 +387,8 @@
- static void
- SDL_DestroyWindowTexture(SDL_VideoDevice *unused, SDL_Window * window)
- {
- + (void)unused;
- +
- SDL_WindowTextureData *data;
- data = SDL_SetWindowData(window, SDL_WINDOWTEXTUREDATA, NULL);
- @@ -2479,6 +2485,7 @@
- void
- SDL_OnWindowLeave(SDL_Window * window)
- {
- + (void)window;
- }
- void
- diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsevents.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsevents.c
- --- SDL2-2.0.5/src/video/windows/SDL_windowsevents.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsevents.c 2016-11-03 21:15:34.822400000 +0200
- @@ -1002,6 +1002,8 @@
- void
- WIN_PumpEvents(_THIS)
- {
- + (void)_this;
- +
- const Uint8 *keystate;
- MSG msg;
- DWORD start_ticks = GetTickCount();
- diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsframebuffer.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsframebuffer.c
- --- SDL2-2.0.5/src/video/windows/SDL_windowsframebuffer.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsframebuffer.c 2016-11-03 21:18:55.698400000 +0200
- @@ -26,6 +26,8 @@
- int WIN_CreateWindowFramebuffer(_THIS, SDL_Window * window, Uint32 * format, void ** pixels, int *pitch)
- {
- + (void)_this;
- +
- SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
- size_t size;
- LPBITMAPINFO info;
- @@ -97,6 +99,10 @@
- int WIN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_Rect * rects, int numrects)
- {
- + (void)_this;
- + (void)rects;
- + (void)numrects;
- +
- SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
- BitBlt(data->hdc, 0, 0, window->w, window->h, data->mdc, 0, 0, SRCCOPY);
- @@ -105,6 +111,8 @@
- void WIN_DestroyWindowFramebuffer(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
- if (!data) {
- diff -ru SDL2-2.0.5/src/video/windows/SDL_windowskeyboard.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowskeyboard.c
- --- SDL2-2.0.5/src/video/windows/SDL_windowskeyboard.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowskeyboard.c 2016-11-03 21:38:20.911400000 +0200
- @@ -111,7 +111,7 @@
- void
- WIN_UpdateKeymap()
- {
- - int i;
- + size_t i;
- SDL_Scancode scancode;
- SDL_Keycode keymap[SDL_NUM_SCANCODES];
- @@ -398,6 +398,8 @@
- static void
- IME_Disable(SDL_VideoData *videodata, HWND hwnd)
- {
- + (void)hwnd;
- +
- if (!videodata->ime_initialized || !videodata->ime_hwnd_current)
- return;
- @@ -744,7 +746,7 @@
- length /= sizeof(videodata->ime_composition[0]);
- videodata->ime_cursor = LOWORD(ImmGetCompositionStringW(himc, GCS_CURSORPOS, 0, 0));
- - if (videodata->ime_cursor < SDL_arraysize(videodata->ime_composition) && videodata->ime_composition[videodata->ime_cursor] == 0x3000) {
- + if ((size_t)videodata->ime_cursor < SDL_arraysize(videodata->ime_composition) && videodata->ime_composition[videodata->ime_cursor] == 0x3000) {
- int i;
- for (i = videodata->ime_cursor + 1; i < length; ++i)
- videodata->ime_composition[i - 1] = videodata->ime_composition[i];
- @@ -796,7 +798,7 @@
- if (videodata->ime_candvertical)
- *dst++ = TEXT(' ');
- - while (*candidate && (SDL_arraysize(videodata->ime_candidates[i]) > (dst - videodata->ime_candidates[i])))
- + while (*candidate && (SDL_arraysize(videodata->ime_candidates[i]) > (size_t)(dst - videodata->ime_candidates[i])))
- *dst++ = *candidate++;
- *dst = (WCHAR)'\0';
- @@ -840,7 +842,7 @@
- page_start = (cand_list->dwSelection / videodata->ime_candpgsize) * videodata->ime_candpgsize;
- }
- SDL_memset(&videodata->ime_candidates, 0, sizeof(videodata->ime_candidates));
- - for (i = page_start, j = 0; (DWORD)i < cand_list->dwCount && j < (int)videodata->ime_candpgsize; i++, j++) {
- + for (i = page_start, j = 0; (DWORD)i < cand_list->dwCount && j < (UINT)videodata->ime_candpgsize; i++, j++) {
- LPCWSTR candidate = (LPCWSTR)((DWORD_PTR)cand_list + cand_list->dwOffset[i]);
- IME_AddCandidate(videodata, j, candidate);
- }
- @@ -1172,6 +1174,11 @@
- STDMETHODIMP IPPASink_OnActivated(TSFSink *sink, DWORD dwProfileType, LANGID langid, REFCLSID clsid, REFGUID catid, REFGUID guidProfile, HKL hkl, DWORD dwFlags)
- {
- + (void)dwProfileType;
- + (void)langid;
- + (void)clsid;
- + (void)hkl;
- +
- static const GUID TF_PROFILE_DAYI = { 0x037B2C25, 0x480C, 0x4D7F, { 0xB0, 0x27, 0xD6, 0xCA, 0x6B, 0x69, 0x78, 0x8A } };
- SDL_VideoData *videodata = (SDL_VideoData *)sink->data;
- videodata->ime_candlistindexbase = SDL_IsEqualGUID(&TF_PROFILE_DAYI, guidProfile) ? 0 : 1;
- @@ -1308,6 +1315,8 @@
- static void
- StopDrawToBitmap(HDC hdc, HBITMAP *hhbm)
- {
- + (void)hdc;
- +
- if (hhbm && *hhbm) {
- DeleteObject(*hhbm);
- *hhbm = NULL;
- @@ -1330,6 +1339,7 @@
- static void
- IME_DestroyTextures(SDL_VideoData *videodata)
- {
- + (void)videodata;
- }
- #define SDL_swap(a,b) { \
- @@ -1529,7 +1539,7 @@
- bottom = size.cy - listborder - listpadding - candmargin;
- }
- - if (i == videodata->ime_candsel) {
- + if ((DWORD)i == videodata->ime_candsel) {
- SelectObject(hdc, selpen);
- SelectObject(hdc, selbrush);
- SetTextColor(hdc, seltextcolor);
- diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsmessagebox.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmessagebox.c
- --- SDL2-2.0.5/src/video/windows/SDL_windowsmessagebox.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmessagebox.c 2016-11-03 21:39:53.754400000 +0200
- @@ -75,6 +75,8 @@
- static INT_PTR MessageBoxDialogProc(HWND hDlg, UINT iMessage, WPARAM wParam, LPARAM lParam)
- {
- + (void)lParam;
- +
- switch ( iMessage ) {
- case WM_COMMAND:
- /* Return the ID of the button that was pushed */
- diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsmodes.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmodes.c
- --- SDL2-2.0.5/src/video/windows/SDL_windowsmodes.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmodes.c 2016-11-03 21:44:07.956400000 +0200
- @@ -42,6 +42,9 @@
- LPRECT lprcMonitor,
- LPARAM dwData)
- {
- + (void)hdcMonitor;
- + (void)lprcMonitor;
- +
- WIN_GetMonitorDPIData *data = (WIN_GetMonitorDPIData*) dwData;
- UINT hdpi, vdpi;
- @@ -317,6 +320,9 @@
- int
- WIN_GetDisplayBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
- {
- + (void)_this;
- + (void)rect;
- +
- SDL_DisplayModeData *data = (SDL_DisplayModeData *) display->current_mode.driverdata;
- rect->x = (int)SDL_ceil(data->DeviceMode.dmPosition.x * data->ScaleX);
- @@ -330,6 +336,8 @@
- int
- WIN_GetDisplayDPI(_THIS, SDL_VideoDisplay * display, float * ddpi, float * hdpi, float * vdpi)
- {
- + (void)_this;
- +
- SDL_DisplayModeData *data = (SDL_DisplayModeData *) display->current_mode.driverdata;
- if (ddpi) {
- @@ -348,6 +356,8 @@
- int
- WIN_GetDisplayUsableBounds(_THIS, SDL_VideoDisplay * display, SDL_Rect * rect)
- {
- + (void)_this;
- +
- const SDL_DisplayModeData *data = (const SDL_DisplayModeData *) display->current_mode.driverdata;
- const DEVMODE *pDevMode = &data->DeviceMode;
- POINT pt = {
- @@ -447,6 +457,8 @@
- WIN_QuitModes(_THIS)
- {
- /* All fullscreen windows should have restored modes by now */
- +
- + (void)_this;
- }
- #endif /* SDL_VIDEO_DRIVER_WINDOWS */
- diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsmouse.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmouse.c
- --- SDL2-2.0.5/src/video/windows/SDL_windowsmouse.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsmouse.c 2016-11-04 01:08:13.443800000 +0200
- @@ -291,6 +291,8 @@
- void
- WIN_InitMouse(_THIS)
- {
- + (void)_this;
- +
- SDL_Mouse *mouse = SDL_GetMouse();
- mouse->CreateCursor = WIN_CreateCursor;
- @@ -311,6 +313,8 @@
- void
- WIN_QuitMouse(_THIS)
- {
- + (void)_this;
- +
- SDL_Mouse *mouse = SDL_GetMouse();
- if ( mouse->def_cursor ) {
- SDL_free(mouse->def_cursor);
- diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsopengl.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsopengl.c
- --- SDL2-2.0.5/src/video/windows/SDL_windowsopengl.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsopengl.c 2016-11-04 01:10:49.802600000 +0200
- @@ -137,6 +137,8 @@
- void *
- WIN_GL_GetProcAddress(_THIS, const char *proc)
- {
- + (void)_this;
- +
- void *func;
- /* This is to pick up extensions */
- @@ -769,6 +771,8 @@
- void
- WIN_GL_SwapWindow(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- HDC hdc = ((SDL_WindowData *) window->driverdata)->hdc;
- SwapBuffers(hdc);
- @@ -787,6 +791,8 @@
- SDL_bool
- WIN_GL_SetPixelFormatFrom(_THIS, SDL_Window * fromWindow, SDL_Window * toWindow)
- {
- + (void)_this;
- +
- HDC hfromdc = ((SDL_WindowData *) fromWindow->driverdata)->hdc;
- HDC htodc = ((SDL_WindowData *) toWindow->driverdata)->hdc;
- BOOL result;
- diff -ru SDL2-2.0.5/src/video/windows/SDL_windowsvideo.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsvideo.c
- --- SDL2-2.0.5/src/video/windows/SDL_windowsvideo.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowsvideo.c 2016-11-04 01:13:16.941800000 +0200
- @@ -44,6 +44,10 @@
- static void UpdateWindowsEnableMessageLoop(void *userdata, const char *name, const char *oldValue, const char *newValue)
- {
- + (void)userdata;
- + (void)name;
- + (void)oldValue;
- +
- if (newValue && *newValue == '0') {
- g_WindowsEnableMessageLoop = SDL_FALSE;
- } else {
- @@ -53,6 +57,10 @@
- static void UpdateWindowFrameUsableWhileCursorHidden(void *userdata, const char *name, const char *oldValue, const char *newValue)
- {
- + (void)userdata;
- + (void)name;
- + (void)oldValue;
- +
- if (newValue && *newValue == '0') {
- g_WindowFrameUsableWhileCursorHidden = SDL_FALSE;
- } else {
- @@ -89,6 +97,8 @@
- static SDL_VideoDevice *
- WIN_CreateDevice(int devindex)
- {
- + (void)devindex;
- +
- SDL_VideoDevice *device;
- SDL_VideoData *data;
- diff -ru SDL2-2.0.5/src/video/windows/SDL_windowswindow.c SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowswindow.c
- --- SDL2-2.0.5/src/video/windows/SDL_windowswindow.c 2016-10-20 07:56:26.000000000 +0300
- +++ SDL2-2.0.5_fix-warnings/src/video/windows/SDL_windowswindow.c 2016-11-04 01:20:16.410200000 +0200
- @@ -81,6 +81,8 @@
- static void
- WIN_SetWindowPositionInternal(_THIS, SDL_Window * window, UINT flags)
- {
- + (void)_this;
- +
- SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
- HWND hwnd = data->hwnd;
- RECT rect;
- @@ -392,6 +394,8 @@
- void
- WIN_SetWindowTitle(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
- LPTSTR title = WIN_UTF8ToString(window->title);
- SetWindowText(hwnd, title);
- @@ -401,6 +405,8 @@
- void
- WIN_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon)
- {
- + (void)_this;
- +
- HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
- HICON hicon = NULL;
- BYTE *icon_bmp;
- @@ -464,6 +470,8 @@
- void
- WIN_ShowWindow(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
- ShowWindow(hwnd, SW_SHOW);
- }
- @@ -471,6 +479,8 @@
- void
- WIN_HideWindow(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
- ShowWindow(hwnd, SW_HIDE);
- }
- @@ -478,6 +488,8 @@
- void
- WIN_RaiseWindow(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
- SetForegroundWindow(hwnd);
- }
- @@ -485,6 +497,8 @@
- void
- WIN_MaximizeWindow(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
- HWND hwnd = data->hwnd;
- data->expected_resize = SDL_TRUE;
- @@ -495,6 +509,8 @@
- void
- WIN_MinimizeWindow(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- HWND hwnd = ((SDL_WindowData *) window->driverdata)->hwnd;
- ShowWindow(hwnd, SW_MINIMIZE);
- }
- @@ -523,6 +539,8 @@
- void
- WIN_SetWindowResizable(_THIS, SDL_Window * window, SDL_bool resizable)
- {
- + (void)_this;
- +
- SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
- HWND hwnd = data->hwnd;
- DWORD style = GetWindowLong(hwnd, GWL_STYLE);
- @@ -539,6 +557,8 @@
- void
- WIN_RestoreWindow(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
- HWND hwnd = data->hwnd;
- data->expected_resize = SDL_TRUE;
- @@ -615,6 +635,8 @@
- int
- WIN_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp)
- {
- + (void)_this;
- +
- SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
- SDL_DisplayData *data = (SDL_DisplayData *) display->driverdata;
- HDC hdc;
- @@ -634,6 +656,8 @@
- int
- WIN_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp)
- {
- + (void)_this;
- +
- SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
- SDL_DisplayData *data = (SDL_DisplayData *) display->driverdata;
- HDC hdc;
- @@ -653,6 +677,8 @@
- void
- WIN_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed)
- {
- + (void)grabbed;
- +
- WIN_UpdateClipCursor(window);
- if (window->flags & SDL_WINDOW_FULLSCREEN) {
- @@ -668,6 +694,8 @@
- void
- WIN_DestroyWindow(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
- if (data) {
- @@ -695,6 +723,8 @@
- SDL_bool
- WIN_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
- {
- + (void)_this;
- +
- const SDL_WindowData *data = (const SDL_WindowData *) window->driverdata;
- if (info->version.major <= SDL_MAJOR_VERSION) {
- info->subsystem = SDL_SYSWM_WINDOWS;
- @@ -780,6 +810,8 @@
- void WIN_OnWindowEnter(_THIS, SDL_Window * window)
- {
- + (void)_this;
- +
- #ifdef WM_MOUSELEAVE
- SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
- TRACKMOUSEEVENT trackMouseEvent;
- @@ -840,12 +872,17 @@
- int
- WIN_SetWindowHitTest(SDL_Window *window, SDL_bool enabled)
- {
- + (void)window;
- + (void)enabled;
- +
- return 0; /* just succeed, the real work is done elsewhere. */
- }
- int
- WIN_SetWindowOpacity(_THIS, SDL_Window * window, float opacity)
- {
- + (void)_this;
- +
- const SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
- const HWND hwnd = data->hwnd;
- const LONG style = GetWindowLong(hwnd, GWL_EXSTYLE);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement