Niotso
git revision 558726a9f13d7c3423a683dd2f4323589b66c310
The New Implementation of The Sims Online
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Libraries
FileHandler
wav
read_wav.h
Go to the documentation of this file.
1
/*
2
FileHandler - General-purpose file handling library for Niotso
3
read_wav.h - Copyright (c) 2012 Niotso Project <http://niotso.org/>
4
Author(s): Fatbag <X-Fi6@phppoll.org>
5
6
Permission to use, copy, modify, and/or distribute this software for any
7
purpose with or without fee is hereby granted, provided that the above
8
copyright notice and this permission notice appear in all copies.
9
10
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
*/
18
19
typedef
struct
20
{
21
uint32_t
sID
;
22
uint32_t
Size
;
23
uint32_t
DataType
;
24
uint32_t
FmtID
;
25
uint32_t
FmtSize
;
26
uint16_t
wFormatTag
;
27
uint16_t
nChannels
;
28
uint32_t
nSamplesPerSec
;
29
uint32_t
nAvgBytesPerSec
;
30
uint16_t
nBlockAlign
;
31
uint16_t
wBitsPerSample
;
32
uint32_t
DataID
;
33
uint32_t
DataSize
;
34
}
wavheader_t
;
35
36
#ifdef __cplusplus
37
extern
"C"
{
38
#endif
39
40
int
wav_read_header
(
wavheader_t
* WAVHeader,
const
uint8_t * Buffer,
size_t
FileSize
);
41
42
#ifdef __cplusplus
43
}
44
#endif
Generated on Sat Jun 15 2013 03:02:15 for Niotso by
1.8.4