comparison decoders/shn.c @ 126:8a5a1c61d3c6

Fix for MS Visual C.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 09 Oct 2001 16:44:05 +0000
parents dd95a12539fd
children 1df5c106504e
comparison
equal deleted inserted replaced
125:7d033b28b5d2 126:8a5a1c61d3c6
55 #include "SDL_sound.h" 55 #include "SDL_sound.h"
56 56
57 #define __SDL_SOUND_INTERNAL__ 57 #define __SDL_SOUND_INTERNAL__
58 #include "SDL_sound_internal.h" 58 #include "SDL_sound_internal.h"
59 59
60 #ifdef _MSC_VER
61 # define inline __inline
62 #endif
60 63
61 static int SHN_init(void); 64 static int SHN_init(void);
62 static void SHN_quit(void); 65 static void SHN_quit(void);
63 static int SHN_open(Sound_Sample *sample, const char *ext); 66 static int SHN_open(Sound_Sample *sample, const char *ext);
64 static void SHN_close(Sound_Sample *sample); 67 static void SHN_close(Sound_Sample *sample);
1043 } /* case */ 1046 } /* case */
1044 break; 1047 break;
1045 } /* switch */ 1048 } /* switch */
1046 1049
1047 i = MIN_MACRO(internal->buffer_size - bw, bsiz); 1050 i = MIN_MACRO(internal->buffer_size - bw, bsiz);
1048 memcpy(internal->buffer + bw, shn->backBuffer, i); 1051 memcpy((char *)internal->buffer + bw, shn->backBuffer, i);
1049 shn->backBufLeft = bsiz - i; 1052 shn->backBufLeft = bsiz - i;
1050 memcpy(shn->backBuffer, shn->backBuffer + i, shn->backBufLeft); 1053 memcpy(shn->backBuffer, shn->backBuffer + i, shn->backBufLeft);
1051 return(i); 1054 return(i);
1052 } /* put_to_buffers */ 1055 } /* put_to_buffers */
1053 1056