-
Notifications
You must be signed in to change notification settings - Fork 0
/
iobook.h
42 lines (36 loc) · 1.01 KB
/
iobook.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* Operacje IO na ksizce 1996 03 04/31 05/01, 12 10/14 */
#ifndef IOBOOK_H
#define IOBOOK_H
/* Wersja zmodernizowana */
typedef struct {
short file_offset;
short book_size;
int signal_size;
float points_per_micro_V;
float FREQUENCY;
float signal_energy;
float book_energy;
} HEADER;
typedef struct { /* Nowy ATOM */
short number_of_atom_in_book;
unsigned char octave;
unsigned char type;
short frequency;
short position;
float modulus;
float amplitude;
float phase;
} ATOM;
#ifndef NOPROTOTYP
#ifdef INTELSWP
float unix_float_to_dos(char *);
void dos_float_to_unix(float,char *);
#endif
int WriteHeader(HEADER *,FILE *); /* Zapis naglowka ksiazki */
int ReadHeader(HEADER *,FILE *); /* Odczyt --//-- ---//-- */
int WriteAtom(ATOM *,FILE *); /* Zapis atomu */
int ReadAtom(ATOM *,FILE *); /* Odczyt atomu */
int SetActualBook(int,FILE *); /* Ustawienie pozycji w zbiorze ksiazek */
int LicznikKsiazek(char *); /* Ustalenie liczby ksiazek w pliku */
#endif
#endif