You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.5 KiB
C

//:Header:1, "_static_SND", 3bd00864
//
// File: llsound_sstaticsnd.h
//
// G A M E.O.N.E - LOW LEVEL LIB V1.0
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
// Licensed under the terms of LGPL.
//:---------------------------------------------------------------------------
//:Description
//
//:---------------------------------------------------------------------------
#ifndef _LLSOUND_SSTATICSND
#define _LLSOUND_SSTATICSND
#include "llfile.h"
#include "llsound_CWavestream.h"
//:> +--------------------------------------+
//:>-----------------| _static_SND Struct Declaration |-----------------
//:> +--------------------------------------+
//:Class
struct _static_SND
{
//:=2
// +--------+
// | used |
// +--------+
int used; // Reference Count
//:=3
// +----------+
// | sndObj |
// +----------+
void * sndObj; // Sound Handle (driver Object)
//:=4
// +--------+
// | name |
// +--------+
char * name; // Name (Pfad)
//:=5
// +--------+
// | mode |
// +--------+
int mode; // Abspielmodus, loop, oneshot
//:=7
// +----------+
// | llstream |
// +----------+
llsound_CWavestream *stream; // nur wenn mode=LLSOUND_STREAM
};
//:=6
// +-------------+
// | Wave format |
// +-------------+
struct _wave_type {
TxU8 bitspersample;
TxU8 numchannels;
TxU16 samplefrequency;
TxU8 blocksize;
};
//:Custom
typedef struct _wave_type s_wavetype;
typedef struct _static_SND s_staticsnd;
//:End Custom
#endif // _LLSOUND_SSTATICSND