mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +00:00
Small jfaud_sounds.cpp update from JonoF
git-svn-id: https://svn.eduke32.com/eduke32@41 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7b5b03d319
commit
7ffe1c887a
1 changed files with 9 additions and 6 deletions
|
@ -21,12 +21,6 @@
|
||||||
* Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
|
* Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
# include <jfaud/jfaud.hpp>
|
|
||||||
#else
|
|
||||||
# include "jfaud.hpp"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "duke3d.h"
|
#include "duke3d.h"
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -37,6 +31,13 @@ extern "C" {
|
||||||
long numenvsnds;
|
long numenvsnds;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef uint64 uint64_t;
|
||||||
|
#ifdef __APPLE__
|
||||||
|
# include <jfaud/jfaud.hpp>
|
||||||
|
#else
|
||||||
|
# include "jfaud.hpp"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SOUNDM_LOOP 1
|
#define SOUNDM_LOOP 1
|
||||||
#define SOUNDM_MSFX 2
|
#define SOUNDM_MSFX 2
|
||||||
#define SOUNDM_DUKE 4
|
#define SOUNDM_DUKE 4
|
||||||
|
@ -195,6 +196,8 @@ void SoundStartup(void)
|
||||||
jfaud = NULL;
|
jfaud = NULL;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jfaud->SetCacheSize(1048576,1048576/2);
|
||||||
|
|
||||||
chans = new SoundChannel[NumVoices];
|
chans = new SoundChannel[NumVoices];
|
||||||
if (!chans) {
|
if (!chans) {
|
||||||
|
|
Loading…
Reference in a new issue