~ubuntu-branches/ubuntu/dapper/terminatorx/dapper

« back to all changes in this revision

Viewing changes to src/wav_file.h

  • Committer: Bazaar Package Importer
  • Author(s): Mike Furr
  • Date: 2004-04-26 21:20:09 UTC
  • Revision ID: james.westby@ubuntu.com-20040426212009-acjw8flkt05j945f
Tags: upstream-3.81
ImportĀ upstreamĀ versionĀ 3.81

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    wav_file.h - taken from wav-tools 1.1
 
3
    Copyright (C) by Colin Ligertwood
 
4
 
 
5
    This program is free software; you can redistribute it and/or modify
 
6
    it under the terms of the GNU General Public License as published by
 
7
    the Free Software Foundation; either version 2 of the License, or
 
8
    (at your option) any later version.
 
9
 
 
10
    This program is distributed in the hope that it will be useful,
 
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
    GNU General Public License for more details.
 
14
 
 
15
    You should have received a copy of the GNU General Public License
 
16
    along with this program; if not, write to the Free Software
 
17
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
    
 
19
    Changes:
 
20
    
 
21
    11 Mar 1999: -added license hint
 
22
                 -slight changes for use with terminatorX
 
23
 
 
24
    20 Mar 1999: now includes sys/types.h and uses types
 
25
                 defined there for interplatform compability. 
 
26
                
 
27
    28 Apr 1999: switch from filedescriptors to FILE*
 
28
    
 
29
    29 Apr 1999: added sox and mpg123 support
 
30
*/
 
31
 
 
32
#ifdef __cplusplus
 
33
extern "C" {
 
34
#endif /* __cplusplus */
 
35
 
 
36
#ifndef _H_WAVFILE
 
37
#define _H_WAVFILE
 
38
 
 
39
#include "tX_global.h"
 
40
#include "tX_types.h"
 
41
 
 
42
typedef struct{
 
43
        int32_t srate;
 
44
        int8_t  chans;
 
45
        int8_t  depth;
 
46
        int32_t bps;
 
47
        int8_t  blkalign;
 
48
        int32_t len;
 
49
        int32_t sofar;
 
50
        
 
51
        FILE*   handle;
 
52
        char    name[PATH_MAX];
 
53
        char    head[43];
 
54
} wav_sig;
 
55
 
 
56
FILE* init_wav_read(char file_name[], wav_sig *info);
 
57
FILE* open_wav_rec(wav_sig *info);
 
58
extern int rewrite_head(wav_sig *info);
 
59
extern void wav_close(FILE* wav);
 
60
#ifdef __cplusplus
 
61
}
 
62
#endif /* __cplusplus */
 
63
 
 
64
#endif