DDraceNetwork Documentation
Loading...
Searching...
No Matches
sound.cpp File Reference
#include "sound.h"
#include <base/log.h>
#include <base/math.h>
#include <base/system.h>
#include <engine/graphics.h>
#include <engine/shared/config.h>
#include <engine/storage.h>
#include <SDL.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()

int ReadDataOld ( void * pBuffer,
int Size )
static

◆ SdlCallback()

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

int SAMPLE_INDEX_FULL = -1
staticconstexpr

◆ SAMPLE_INDEX_USED

int SAMPLE_INDEX_USED = -2
staticconstexpr