1 //-----------------------------------------------------------------------------
2 // Copyright (c) 2015-2018 Marcelo Fernandez
3 //
4 // Permission is hereby granted, free of charge, to any person obtaining a copy
5 // of this software and associated documentation files (the "Software"), to
6 // deal in the Software without restriction, including without limitation the
7 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8 // sell copies of the Software, and to permit persons to whom the Software is
9 // furnished to do so, subject to the following conditions:
10 //
11 // The above copyright notice and this permission notice shall be included in
12 // all copies or substantial portions of the Software.
13 //
14 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20 // IN THE SOFTWARE.
21 //-----------------------------------------------------------------------------
22 
23 #ifndef __OAMLCOMMON_H__
24 #define __OAMLCOMMON_H__
25 
26 #include <assert.h>
27 
28 //
29 // Definitions
30 //
31 
32 #ifdef _WIN32
33 #define PATH_SEPARATOR "\\"
34 #else
35 #define PATH_SEPARATOR "/"
36 #endif
37 
38 
39 // Visual Studio specific stuff
40 #ifdef _MSC_VER
41 
42 #define snprintf	sprintf_s
43 
44 #endif
45 
46 #ifdef _MSC_VER
47 #define DLLEXPORT __declspec(dllexport)
48 #else
49 #define DLLEXPORT
50 #endif
51 
52 
53 #ifdef DEBUG
54 
55 #ifdef _MSC_VER
56 #define ASSERT(e)
57 #else
58 #define ASSERT(e)  \
59     ((void) ((e) ? ((void)0) : __assert (#e, __FILE__, __LINE__)))
60 #endif
61 
62 #else
63 
64 #define ASSERT(e)
65 
66 #endif
67 
68 #include "oaml.h"
69 #include "gettime.h"
70 #include "ByteBuffer.h"
71 #include "audioFile.h"
72 #include "aif.h"
73 #ifdef __HAVE_OGG
74 #include "ogg.h"
75 #endif
76 #include "tinyxml2.h"
77 #include "wav.h"
78 #include "oamlLayer.h"
79 #include "oamlAudioFile.h"
80 #include "oamlAudio.h"
81 #include "oamlTrack.h"
82 #include "oamlMusicTrack.h"
83 #include "oamlSfxTrack.h"
84 #include "oamlCompressor.h"
85 #include "oamlBase.h"
86 #include "oamlUtil.h"
87 
88 
89 #endif /* __OAMLCOMMON_H__ */
90