2
* function: Header file for wave_out.c
4
* This program is distributed under the GNU General Public License, version 2.
5
* A copy of this license is included with this source.
7
* Copyright (C) 2002 John Edwards
10
#ifndef __WAVE_OUT_H__
11
#define __WAVE_OUT_H__
18
#define __attribute__(x)
19
#define sleep(__sec) Sleep ((__sec) * 1000)
20
#define inline __inline
27
#define CD_SAMPLE_FREQ 44.1e3
28
#define SAMPLE_SIZE 16
29
#define SAMPLE_SIZE_STRING ""
30
#define WINAUDIO_FD ((FILE_T)-128)
32
#define INVALID_FILEDESC NULL
38
typedef signed int Int; // at least -32767...+32767, fast type
39
typedef unsigned int Uint; // at least 0...65535, fast type
40
typedef long double Ldouble; // most exact floating point format
43
* functions for wave_out.c
46
Int Set_WIN_Params ( FILE_T dummyFile , Ldouble SampleFreq, Uint BitsPerSample, Uint Channels );
47
int WIN_Play_Samples ( const void* buff, size_t len );
48
int WIN_Audio_close ( void );
50
#endif /* __WAVE_OUT_H__ */
2
* function: Header file for wave_out.c
4
* This program is distributed under the GNU General Public License, version 2.
5
* A copy of this license is included with this source.
7
* Copyright (C) 2002 John Edwards
10
#ifndef __WAVE_OUT_H__
11
#define __WAVE_OUT_H__
18
#define __attribute__(x)
19
#define sleep(__sec) Sleep ((__sec) * 1000)
20
#define inline __inline
27
#define CD_SAMPLE_FREQ 44.1e3
28
#define SAMPLE_SIZE 16
29
#define SAMPLE_SIZE_STRING ""
30
#define WINAUDIO_FD ((FILE_T)-128)
32
#define INVALID_FILEDESC NULL
38
typedef signed int Int; // at least -32767...+32767, fast type
39
typedef unsigned int Uint; // at least 0...65535, fast type
40
typedef long double Ldouble; // most exact floating point format
43
* functions for wave_out.c
46
Int Set_WIN_Params ( FILE_T dummyFile , Ldouble SampleFreq, Uint BitsPerSample, Uint Channels );
47
int WIN_Play_Samples ( const void* buff, size_t len );
48
int WIN_Audio_close ( void );
50
#endif /* __WAVE_OUT_H__ */