Wing Commander II
Reconstructed Win32 source (1996)
Loading...
Searching...
No Matches
dsps.cpp File Reference

DirectSound streaming ring buffers. More...

#include "ix.h"
#include <dos.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

void ix_dsps_prepare (int stream)
void ix_dsps_play (int stream)
void ix_dsps_stop (int stream)
void ix_dsps_set_volume (int stream, unsigned short volume)
int ix_dsps_get_buffer_free (int stream)
void ix_dsps_unlock (int stream)
void ix_dsps_alloc (int stream, unsigned int size, int freq, int bps, int channels)
void ix_dsps_free (int stream)
void ix_dsps_lock (int stream, unsigned int requestedBytes, unsigned char **buffer, unsigned int *lockedBytes)
unsigned int ix_dsps_get_flags (int stream)

Variables

int g_3_nStreamCount
int g_nStreamsTaken
IxStream g_1_streams [2]

Detailed Description

DirectSound streaming ring buffers.

Definition in file dsps.cpp.

Function Documentation

◆ ix_dsps_alloc()

◆ ix_dsps_free()

◆ ix_dsps_get_buffer_free()

◆ ix_dsps_get_flags()

unsigned int ix_dsps_get_flags ( int stream)

◆ ix_dsps_lock()

void ix_dsps_lock ( int stream,
unsigned int requestedBytes,
unsigned char ** buffer,
unsigned int * lockedBytes )

◆ ix_dsps_play()

◆ ix_dsps_prepare()

◆ ix_dsps_set_volume()

◆ ix_dsps_stop()

◆ ix_dsps_unlock()

Variable Documentation

◆ g_1_streams

◆ g_3_nStreamCount

◆ g_nStreamsTaken

int g_nStreamsTaken