~bratsche/vlc/vlc-notify-add-actions-with-server-support

« back to all changes in this revision

Viewing changes to extras/faad2/aacDECdrop/wave_out.h

  • Committer: Bazaar Package Importer
  • Date: 2008-11-28 09:29:51 UTC
  • Revision ID: jamesw@ubuntu.com-20081128092951-0y5ojboptscru17f
Tags: upstream-ubuntu-0.8.6.release.e+x264svn20071224+faad2.6.1
ImportĀ upstreamĀ versionĀ 0.8.6.release.e+x264svn20071224+faad2.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * function: Header file for wave_out.c
3
 
 *
4
 
 * This program is distributed under the GNU General Public License, version 2.
5
 
 * A copy of this license is included with this source.
6
 
 *
7
 
 * Copyright (C) 2002 John Edwards
8
 
 */
9
 
 
10
 
#ifndef __WAVE_OUT_H__
11
 
#define __WAVE_OUT_H__
12
 
 
13
 
 
14
 
#include <stdio.h>
15
 
#include <windows.h>
16
 
 
17
 
#define Cdecl               __cdecl
18
 
#define __attribute__(x)
19
 
#define sleep(__sec)        Sleep ((__sec) * 1000)
20
 
#define inline              __inline
21
 
#define restrict
22
 
 
23
 
/*
24
 
 * constants
25
 
 */
26
 
 
27
 
#define CD_SAMPLE_FREQ         44.1e3
28
 
#define SAMPLE_SIZE            16
29
 
#define SAMPLE_SIZE_STRING     ""
30
 
#define WINAUDIO_FD            ((FILE_T)-128)
31
 
#define FILE_T                 FILE*
32
 
#define INVALID_FILEDESC       NULL
33
 
 
34
 
/*
35
 
 * Simple types
36
 
 */
37
 
 
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
41
 
 
42
 
/*
43
 
 * functions for wave_out.c
44
 
 */
45
 
 
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 );
49
 
 
50
 
#endif   /* __WAVE_OUT_H__ */
 
1
/*
 
2
 * function: Header file for wave_out.c
 
3
 *
 
4
 * This program is distributed under the GNU General Public License, version 2.
 
5
 * A copy of this license is included with this source.
 
6
 *
 
7
 * Copyright (C) 2002 John Edwards
 
8
 */
 
9
 
 
10
#ifndef __WAVE_OUT_H__
 
11
#define __WAVE_OUT_H__
 
12
 
 
13
 
 
14
#include <stdio.h>
 
15
#include <windows.h>
 
16
 
 
17
#define Cdecl               __cdecl
 
18
#define __attribute__(x)
 
19
#define sleep(__sec)        Sleep ((__sec) * 1000)
 
20
#define inline              __inline
 
21
#define restrict
 
22
 
 
23
/*
 
24
 * constants
 
25
 */
 
26
 
 
27
#define CD_SAMPLE_FREQ         44.1e3
 
28
#define SAMPLE_SIZE            16
 
29
#define SAMPLE_SIZE_STRING     ""
 
30
#define WINAUDIO_FD            ((FILE_T)-128)
 
31
#define FILE_T                 FILE*
 
32
#define INVALID_FILEDESC       NULL
 
33
 
 
34
/*
 
35
 * Simple types
 
36
 */
 
37
 
 
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
 
41
 
 
42
/*
 
43
 * functions for wave_out.c
 
44
 */
 
45
 
 
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 );
 
49
 
 
50
#endif   /* __WAVE_OUT_H__ */