NumeRe
v1.1.4
NumeRe: Framework für Numerische Rechnungen
ReadWave.h
Go to the documentation of this file.
1
#ifndef READWAVE_H
2
#define READWAVE_H
3
4
#include <stdio.h>
5
#include <tchar.h>
6
#include <ctype.h>
7
#include <string.h>
8
#include <stdlib.h>
9
#include <stddef.h>
10
11
#include "
./CrossPlatformFileIO.h
"
12
#include "
./IgorBin.h
"
13
14
15
/* ReadWave(fr, typePtr, npntsPtr, waveDataPtrPtr)
16
17
Reads the wave file and prints some information about it.
18
19
Returns to the calling routine the wave's type, number of points, and the
20
wave data. The calling routine must free *waveDataPtrPtr if it is
21
not null.
22
23
Returns 0 or an error code.
24
25
This routine is written such that it could be used to read waves
26
from an Igor packed experiment file as well as from a standalone
27
Igor binary wave file. In order to achieve this, we must not assume
28
that the wave is at the start of the file. We do assume that, on entry
29
to this routine, the file position is at the start of the wave.
30
*/
31
int
ReadWave
(
CP_FILE_REF
fr,
int
* typePtr,
long
* npntsPtr,
long
* ndimptr,
double
* sfa,
double
* sfb,
void
** waveDataPtrPtr,
char
**
name
);
32
33
34
35
36
37
#endif
// READWAVE_H
38
CrossPlatformFileIO.h
CP_FILE_REF
#define CP_FILE_REF
Definition:
CrossPlatformFileIO.h:11
IgorBin.h
ReadWave
int ReadWave(CP_FILE_REF fr, int *typePtr, long *npntsPtr, long *ndimptr, double *sfa, double *sfb, void **waveDataPtrPtr, char **name)
Definition:
ReadWave.cpp:295
name
char name[32]
Definition:
resampler.cpp:371
kernel
core
IgorLib
ReadWave.h
Generated by
1.9.3