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
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*/
31int 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
#define CP_FILE_REF
int ReadWave(CP_FILE_REF fr, int *typePtr, long *npntsPtr, long *ndimptr, double *sfa, double *sfb, void **waveDataPtrPtr, char **name)
Definition: ReadWave.cpp:295
char name[32]
Definition: resampler.cpp:371