next up previous contents
Next: 4.2 Functions Up: 4 MIDAS DLL API Previous: 4 MIDAS DLL API

4.1 Constants

This section describes all numerical constants used in the module. The constants are grouped into subsections according to the enum used to define them in midasdll.h.

4.1.1 MIDASoptions

enum MIDASoptions

Description

These constants are used with the function MIDASsetOption, to change different MIDAS configuration options.

Values

MIDAS_OPTION_MIXRATE
Output mixing rate

MIDAS_OPTION_OUTPUTMODE
Output mode, see enum MIDASmodes
MIDAS_OPTION_MIXBUFLEN
Mixing buffer length, in milliseconds

MIDAS_OPTION_MIXBUFBLOCKS
The number of blocks the buffer should be divided into

4.1.2 MIDASmodes

enum MIDASmodes

Description

These constants are used to describe different MIDAS output modes. They are used with the function MIDASsetOption, when changing the setting MIDAS_OPTION_OUTPUTMODE.

Values

MIDAS_MODE_8BIT_MONO
8-bit mono output
MIDAS_MODE_16BIT_MONO
16-bit mono output
MIDAS_MODE_8BIT_STEREO
8-bit stereo output
MIDAS_MODE_16BIT_STEREO
16-bit stereo output

4.1.3 MIDASsampleTypes

enum MIDASsampleTypes

Description

These constants identify different sample types. They are used with the functions MIDASloadRawSample and MIDASplayStreamFile to indicate the format of the file.

Values

MIDAS_SAMPLE_8BIT_MONO
8-bit mono sample, unsigned
MIDAS_SAMPLE_8BIT_STEREO
8-bit stereo sample, unsigned
MIDAS_SAMPLE_16BIT_MONO
16-bit mono sample, signed
MIDAS_SAMPLE_16BIT_STEREO
16-bit stereo sample, signed

4.1.4 MIDASloop

enum MIDASloop

Description

These constants are used to indicate the loop type of a sample or stream.

Values

MIDAS_LOOP_NO
Sample or stream does not loop
MIDAS_LOOP_YES
Sample or stream loops

4.1.5 MIDASpanning

enum MIDASpanning

Description

These constants are used to describe the panning position of a sound. Legal panning positions range from -64 (extreme left) to 64 (extreme right), inclusive, plus MIDAS_PAN_SURROUND for surround sound.

Values

MIDAS_PAN_LEFT
Panning position full left
MIDAS_PAN_MIDDLE
Panning position middle
MIDAS_PAN_RIGHT
Panning position full right
MIDAS_PAN_SURROUND
Surround sound

4.1.6 MIDASchannels

enum MIDASchannels

Description

These constants are used to indicate the channel number a sound should be played on. Legal channel numbers range from 0 upwards, depending on the number of open channels. In addition, MIDAS_CHANNEL_AUTO can be used with MIDASplaySample.

Values

MIDAS_CHANNEL_AUTO
Select channel automatically, used with MIDASplaySample


next up previous contents
Next: 4.2 Functions Up: 4 MIDAS DLL API Previous: 4 MIDAS DLL API

Petteri Kangaslampi
Mon Oct 14 20:43:26 EET DST 1996