Mercurial > audlegacy
annotate Plugins/Input/mpg123/decode_ntom.c @ 257:256b3acc87d4 trunk
[svn] Properly report Audacious instead of XMMS or BMP in all places. Patch by laci; closes bug #379.
author | chainsaw |
---|---|
date | Sun, 04 Dec 2005 09:29:14 -0800 |
parents | f6ceb8f4ad5c |
children | 0f294f2b0a9b |
rev | line source |
---|---|
128
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
1 /* |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
2 * Mpeg Layer-1,2,3 audio decoder |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
3 * ------------------------------ |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
4 * copyright (c) 1995,1996,1997 by Michael Hipp, All rights reserved. |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
5 * See also 'README' |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
6 * |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
7 * N->M down/up sampling. Not optimized for speed. |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
8 */ |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
9 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
10 #include <stdlib.h> |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
11 #include <math.h> |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
12 #include <string.h> |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
13 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
14 #include "mpg123.h" |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
15 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
16 #define WRITE_SAMPLE(samples,sum,clip) \ |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
17 if( (sum) > 32767.0) { *(samples) = 0x7fff; (clip)++; } \ |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
18 else if( (sum) < -32768.0) { *(samples) = -0x8000; (clip)++; } \ |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
19 else { *(samples) = sum; } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
20 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
21 #define NTOM_MUL (32768) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
22 static unsigned long ntom_val[2] = { NTOM_MUL>>1,NTOM_MUL>>1 }; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
23 static unsigned long ntom_step = NTOM_MUL; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
24 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
25 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
26 void mpg123_synth_ntom_set_step(long m,long n) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
27 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
28 if(n >= 96000 || m >= 96000 || m == 0 || n == 0) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
29 fprintf(stderr,"NtoM converter: illegal rates\n"); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
30 exit(1); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
31 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
32 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
33 n *= NTOM_MUL; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
34 ntom_step = n / m; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
35 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
36 if(ntom_step > 8*NTOM_MUL) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
37 fprintf(stderr,"max. 1:8 conversion allowed!\n"); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
38 exit(1); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
39 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
40 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
41 ntom_val[0] = ntom_val[1] = NTOM_MUL>>1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
42 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
43 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
44 int mpg123_synth_ntom_8bit(real *bandPtr,int channel,unsigned char *samples,int *pnt) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
45 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
46 short samples_tmp[8*64]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
47 short *tmp1 = samples_tmp + channel; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
48 int i,ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
49 int pnt1 = 0; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
50 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
51 ret = mpg123_synth_ntom(bandPtr,channel,(unsigned char *) samples_tmp,&pnt1); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
52 samples += channel + *pnt; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
53 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
54 for(i=0;i<(pnt1>>2);i++) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
55 *samples = mpg123_conv16to8[*tmp1>>AUSHIFT]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
56 samples += 2; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
57 tmp1 += 2; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
58 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
59 *pnt += pnt1>>1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
60 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
61 return ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
62 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
63 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
64 int mpg123_synth_ntom_8bit_mono(real *bandPtr,unsigned char *samples,int *pnt) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
65 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
66 short samples_tmp[8*64]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
67 short *tmp1 = samples_tmp; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
68 int i,ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
69 int pnt1 = 0; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
70 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
71 ret = mpg123_synth_ntom(bandPtr,0,(unsigned char *) samples_tmp,&pnt1); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
72 samples += *pnt; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
73 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
74 for(i=0;i<(pnt1>>2);i++) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
75 *samples++ = mpg123_conv16to8[*tmp1>>AUSHIFT]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
76 tmp1 += 2; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
77 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
78 *pnt += pnt1 >> 2; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
79 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
80 return ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
81 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
82 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
83 int mpg123_synth_ntom_8bit_mono2stereo(real *bandPtr,unsigned char *samples,int *pnt) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
84 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
85 short samples_tmp[8*64]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
86 short *tmp1 = samples_tmp; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
87 int i,ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
88 int pnt1 = 0; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
89 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
90 ret = mpg123_synth_ntom(bandPtr,0,(unsigned char *) samples_tmp,&pnt1); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
91 samples += *pnt; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
92 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
93 for(i=0;i<(pnt1>>2);i++) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
94 *samples++ = mpg123_conv16to8[*tmp1>>AUSHIFT]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
95 *samples++ = mpg123_conv16to8[*tmp1>>AUSHIFT]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
96 tmp1 += 2; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
97 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
98 *pnt += pnt1 >> 1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
99 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
100 return ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
101 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
102 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
103 int mpg123_synth_ntom_mono(real *bandPtr,unsigned char *samples,int *pnt) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
104 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
105 short samples_tmp[8*64]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
106 short *tmp1 = samples_tmp; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
107 int i,ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
108 int pnt1 = 0; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
109 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
110 ret = mpg123_synth_ntom(bandPtr,0,(unsigned char *) samples_tmp,&pnt1); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
111 samples += *pnt; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
112 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
113 for(i=0;i<(pnt1>>2);i++) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
114 *( (short *)samples) = *tmp1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
115 samples += 2; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
116 tmp1 += 2; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
117 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
118 *pnt += pnt1 >> 1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
119 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
120 return ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
121 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
122 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
123 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
124 int mpg123_synth_ntom_mono2stereo(real *bandPtr,unsigned char *samples,int *pnt) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
125 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
126 int i,ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
127 int pnt1 = *pnt; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
128 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
129 ret = mpg123_synth_ntom(bandPtr,0,samples,pnt); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
130 samples += pnt1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
131 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
132 for(i=0;i<((*pnt-pnt1)>>2);i++) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
133 ((short *)samples)[1] = ((short *)samples)[0]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
134 samples+=4; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
135 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
136 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
137 return ret; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
138 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
139 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
140 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
141 int mpg123_synth_ntom(real *bandPtr,int channel,unsigned char *out,int *pnt) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
142 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
143 static real buffs[2][2][0x110]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
144 static const int step = 2; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
145 static int bo = 1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
146 short *samples = (short *) (out + *pnt); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
147 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
148 real *b0,(*buf)[0x110]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
149 int clip = 0; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
150 int bo1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
151 int ntom; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
152 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
153 if(!channel) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
154 bo--; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
155 bo &= 0xf; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
156 buf = buffs[0]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
157 ntom = ntom_val[1] = ntom_val[0]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
158 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
159 else { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
160 samples++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
161 out += 2; /* to compute the right *pnt value */ |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
162 buf = buffs[1]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
163 ntom = ntom_val[1]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
164 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
165 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
166 if(bo & 0x1) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
167 b0 = buf[0]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
168 bo1 = bo; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
169 mpg123_dct64(buf[1]+((bo+1)&0xf),buf[0]+bo,bandPtr); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
170 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
171 else { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
172 b0 = buf[1]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
173 bo1 = bo+1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
174 mpg123_dct64(buf[0]+bo,buf[1]+bo+1,bandPtr); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
175 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
176 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
177 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
178 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
179 register int j; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
180 real *window = decwin + 16 - bo1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
181 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
182 for (j=16;j;j--,window+=0x10) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
183 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
184 real sum; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
185 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
186 ntom += ntom_step; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
187 if(ntom < NTOM_MUL) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
188 window += 16; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
189 b0 += 16; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
190 continue; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
191 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
192 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
193 sum = *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
194 sum -= *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
195 sum += *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
196 sum -= *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
197 sum += *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
198 sum -= *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
199 sum += *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
200 sum -= *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
201 sum += *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
202 sum -= *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
203 sum += *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
204 sum -= *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
205 sum += *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
206 sum -= *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
207 sum += *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
208 sum -= *window++ * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
209 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
210 while(ntom >= NTOM_MUL) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
211 WRITE_SAMPLE(samples,sum,clip); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
212 samples += step; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
213 ntom -= NTOM_MUL; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
214 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
215 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
216 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
217 ntom += ntom_step; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
218 if(ntom >= NTOM_MUL) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
219 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
220 real sum; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
221 sum = window[0x0] * b0[0x0]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
222 sum += window[0x2] * b0[0x2]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
223 sum += window[0x4] * b0[0x4]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
224 sum += window[0x6] * b0[0x6]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
225 sum += window[0x8] * b0[0x8]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
226 sum += window[0xA] * b0[0xA]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
227 sum += window[0xC] * b0[0xC]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
228 sum += window[0xE] * b0[0xE]; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
229 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
230 while(ntom >= NTOM_MUL) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
231 WRITE_SAMPLE(samples,sum,clip); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
232 samples += step; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
233 ntom -= NTOM_MUL; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
234 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
235 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
236 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
237 b0-=0x10,window-=0x20; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
238 window += bo1<<1; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
239 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
240 for (j=15;j;j--,b0-=0x20,window-=0x10) |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
241 { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
242 real sum; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
243 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
244 ntom += ntom_step; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
245 if(ntom < NTOM_MUL) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
246 window -= 16; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
247 b0 += 16; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
248 continue; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
249 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
250 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
251 sum = -*(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
252 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
253 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
254 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
255 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
256 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
257 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
258 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
259 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
260 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
261 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
262 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
263 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
264 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
265 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
266 sum -= *(--window) * *b0++; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
267 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
268 while(ntom >= NTOM_MUL) { |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
269 WRITE_SAMPLE(samples,sum,clip); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
270 samples += step; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
271 ntom -= NTOM_MUL; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
272 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
273 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
274 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
275 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
276 ntom_val[channel] = ntom; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
277 *pnt = ((unsigned char *) samples - out); |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
278 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
279 return clip; |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
280 } |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
281 |
f6ceb8f4ad5c
[svn] Optimized decoders, and custom resampler. We don't use these yet.
nenolod
parents:
diff
changeset
|
282 |