Changes since SDL 1.2.0 release
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402
This commit is contained in:
parent
2f110628a7
commit
9b6cc5a90d
40 changed files with 1225 additions and 105 deletions
|
@ -29,13 +29,12 @@ static char rcsid =
|
|||
(necessary because SDL audio emulates threads with fork()
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#ifdef FORK_HACK
|
||||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
#include <stddef.h>
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#include "SDL_audiomem.h"
|
||||
|
|
|
@ -96,7 +96,7 @@ static const Uint8 mix8[] =
|
|||
#define ADJUST_VOLUME(s, v) (s = (s*v)/SDL_MIX_MAXVOLUME)
|
||||
#define ADJUST_VOLUME_U8(s, v) (s = (((s-128)*v)/SDL_MIX_MAXVOLUME)+128)
|
||||
|
||||
void SDL_MixAudio (Uint8 *dst, Uint8 *src, Uint32 len, int volume)
|
||||
void SDL_MixAudio (Uint8 *dst, const Uint8 *src, Uint32 len, int volume)
|
||||
{
|
||||
Uint16 format;
|
||||
|
||||
|
|
|
@ -48,6 +48,9 @@ static char rcsid =
|
|||
#ifdef __FreeBSD__
|
||||
#include <machine/soundcard.h>
|
||||
#endif
|
||||
#ifdef __OpenBSD__
|
||||
#include <soundcard.h>
|
||||
#endif
|
||||
#ifdef __USLC__
|
||||
#include <sys/soundcard.h>
|
||||
#endif
|
||||
|
|
|
@ -46,6 +46,9 @@ static char rcsid =
|
|||
#ifdef __FreeBSD__
|
||||
#include <machine/soundcard.h>
|
||||
#endif
|
||||
#ifdef __OpenBSD__
|
||||
#include <soundcard.h>
|
||||
#endif
|
||||
#ifdef __USLC__
|
||||
#include <sys/soundcard.h>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue