forked from Midi-In/akaiutil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathakaiutil_take.h
68 lines (43 loc) · 2.11 KB
/
akaiutil_take.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef __AKAIUTIL_TAKE_H
#define __AKAIUTIL_TAKE_H
/*
* Copyright (C) 2012,2018,2019 Klaus Michael Indlekofer. All rights reserved.
*
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "akaiutil_io.h"
#include "akaiutil.h"
/* AKAI DD takes */
/* Note: all data types are little endian */
/* S1100/S3000 DD take header (directory entry in DD partition header) */
/* XXX should be defined in akaiutil_take.h, but must be in akaiutil.h due to dependencies */
struct akai_ddtake_s;
/* file name ending for exported DD take */
#define AKAI_DDTAKE_FNAMEEND ".TK"
/* Declarations */
extern int akai_ddtake_info(struct part_s *pp,u_int ti,int verbose);
extern int akai_import_take(int inpfd,struct part_s *pp,struct akai_ddtake_s *tp,u_int ti,u_int csizes,u_int csizee);
extern int akai_export_take(int outfd,struct part_s *pp,struct akai_ddtake_s *tp,u_int csizes,u_int csizee,u_int cstarts,u_int cstarte);
#define TAKE2WAV_CHECK 1
#define TAKE2WAV_EXPORT 2
#define TAKE2WAV_CREATE 4
#define TAKE2WAV_ALL 0xff
extern int akai_take2wav(struct part_s *pp,u_int ti,int wavfd,u_int *sizep,char **wavnamep,int what);
#define WAV2TAKE_OPEN 1
extern int akai_wav2take(int wavfd,char *wavname,struct part_s *pp,u_int ti,u_int *bcountp,int what);
extern int akai_take_setenv(struct part_s *pp,u_int cstarts,u_int samplesize,u_char *envbuf,u_int envsiz);
#endif /* !__AKAIUTIL_TAKE_H */