DDraceNetwork Docs
sound.cpp File Reference
#include <SDL.h>
#include <base/math.h>
#include <base/system.h>
#include <engine/graphics.h>
#include <engine/shared/config.h>
#include <engine/storage.h>
#include "sound.h"
#include <engine/shared/video.h>
#include <opusfile.h>
#include <wavpack.h>
#include <cmath>
Include dependency graph for sound.cpp:

Functions

static void SdlCallback (void *pUser, Uint8 *pStream, int Len)
 
static int ReadDataOld (void *pBuffer, int Size)
 
IEngineSoundCreateEngineSound ()
 

Variables

static constexpr int SAMPLE_INDEX_USED = -2
 
static constexpr int SAMPLE_INDEX_FULL = -1
 
static const void * s_pWVBuffer = nullptr
 
static int s_WVBufferPosition = 0
 
static int s_WVBufferSize = 0
 

Function Documentation

◆ CreateEngineSound()

IEngineSound * CreateEngineSound ( )

◆ ReadDataOld()

static int ReadDataOld ( void *  pBuffer,
int  Size 
)
static

◆ SdlCallback()

static void SdlCallback ( void *  pUser,
Uint8 *  pStream,
int  Len 
)
static

Variable Documentation

◆ s_pWVBuffer

const void* s_pWVBuffer = nullptr
static

◆ s_WVBufferPosition

int s_WVBufferPosition = 0
static

◆ s_WVBufferSize

int s_WVBufferSize = 0
static

◆ SAMPLE_INDEX_FULL

constexpr int SAMPLE_INDEX_FULL = -1
staticconstexpr

◆ SAMPLE_INDEX_USED

constexpr int SAMPLE_INDEX_USED = -2
staticconstexpr