diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-05-24 21:28:16 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-05-24 21:28:16 +0000 |
commit | 526b5580dabbfed7cfe5439dc3a90ec727f563c2 (patch) | |
tree | 22b1af92348785daad16714ee5e2b633017e0e48 /apps/plugins/pdbox/PDa/extra/sformat.h | |
parent | 4f2dfcc01b260d946044ef2b6af5fe36cb772c8d (diff) | |
download | rockbox-526b5580dabbfed7cfe5439dc3a90ec727f563c2.tar.gz rockbox-526b5580dabbfed7cfe5439dc3a90ec727f563c2.zip |
Cut the files in half and it might work better (note to self: check your tree is really clean before patching)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21070 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/extra/sformat.h')
-rw-r--r-- | apps/plugins/pdbox/PDa/extra/sformat.h | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/apps/plugins/pdbox/PDa/extra/sformat.h b/apps/plugins/pdbox/PDa/extra/sformat.h index b75ef98c9a..93d353785b 100644 --- a/apps/plugins/pdbox/PDa/extra/sformat.h +++ b/apps/plugins/pdbox/PDa/extra/sformat.h | |||
@@ -54,57 +54,3 @@ typedef struct _wave | |||
54 | 54 | ||
55 | #endif | 55 | #endif |
56 | 56 | ||
57 | #ifndef SFORMAT_H__ | ||
58 | #define SFORMAT_H__ | ||
59 | |||
60 | typedef unsigned short uint16; | ||
61 | typedef unsigned long uint32; | ||
62 | |||
63 | #define FORMAT_WAVE 0 | ||
64 | #define FORMAT_AIFF 1 | ||
65 | #define FORMAT_NEXT 2 | ||
66 | |||
67 | /* the NeXTStep sound header structure; can be big or little endian */ | ||
68 | |||
69 | typedef struct _nextstep | ||
70 | { | ||
71 | char ns_fileid[4]; /* magic number '.snd' if file is big-endian */ | ||
72 | uint32 ns_onset; /* byte offset of first sample */ | ||
73 | uint32 ns_length; /* length of sound in bytes */ | ||
74 | uint32 ns_format; /* format; see below */ | ||
75 | uint32 ns_sr; /* sample rate */ | ||
76 | uint32 ns_nchans; /* number of channels */ | ||
77 | char ns_info[4]; /* comment */ | ||
78 | } t_nextstep; | ||
79 | |||
80 | #define NS_FORMAT_LINEAR_16 3 | ||
81 | #define NS_FORMAT_LINEAR_24 4 | ||
82 | #define NS_FORMAT_FLOAT 6 | ||
83 | #define SCALE (1./(1024. * 1024. * 1024. * 2.)) | ||
84 | |||
85 | /* the WAVE header. All Wave files are little endian. We assume | ||
86 | the "fmt" chunk comes first which is usually the case but perhaps not | ||
87 | always; same for AIFF and the "COMM" chunk. */ | ||
88 | |||
89 | typedef unsigned word; | ||
90 | typedef unsigned long dword; | ||
91 | |||
92 | typedef struct _wave | ||
93 | { | ||
94 | char w_fileid[4]; /* chunk id 'RIFF' */ | ||
95 | uint32 w_chunksize; /* chunk size */ | ||
96 | char w_waveid[4]; /* wave chunk id 'WAVE' */ | ||
97 | char w_fmtid[4]; /* format chunk id 'fmt ' */ | ||
98 | uint32 w_fmtchunksize; /* format chunk size */ | ||
99 | uint16 w_fmttag; /* format tag, 1 for PCM */ | ||
100 | uint16 w_nchannels; /* number of channels */ | ||
101 | uint32 w_samplespersec; /* sample rate in hz */ | ||
102 | uint32 w_navgbytespersec; /* average bytes per second */ | ||
103 | uint16 w_nblockalign; /* number of bytes per sample */ | ||
104 | uint16 w_nbitspersample; /* number of bits in a sample */ | ||
105 | char w_datachunkid[4]; /* data chunk id 'data' */ | ||
106 | uint32 w_datachunksize; /* length of data chunk */ | ||
107 | } t_wave; | ||
108 | |||
109 | |||
110 | #endif | ||