|
@@ -31,16 +31,6 @@
|
|
#define HALF (IN_MAX >> 1)
|
|
#define HALF (IN_MAX >> 1)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#ifdef CONFIG_MIXEMU
|
|
|
|
-#ifdef FLOAT_MIXENG
|
|
|
|
-#define VOL(a, b) ((a) * (b))
|
|
|
|
-#else
|
|
|
|
-#define VOL(a, b) ((a) * (b)) >> 32
|
|
|
|
-#endif
|
|
|
|
-#else
|
|
|
|
-#define VOL(a, b) a
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#define ET glue (ENDIAN_CONVERSION, glue (_, IN_T))
|
|
#define ET glue (ENDIAN_CONVERSION, glue (_, IN_T))
|
|
|
|
|
|
#ifdef FLOAT_MIXENG
|
|
#ifdef FLOAT_MIXENG
|
|
@@ -109,40 +99,26 @@ static inline IN_T glue (clip_, ET) (int64_t v)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
static void glue (glue (conv_, ET), _to_stereo)
|
|
static void glue (glue (conv_, ET), _to_stereo)
|
|
- (struct st_sample *dst, const void *src, int samples, struct mixeng_volume *vol)
|
|
|
|
|
|
+ (struct st_sample *dst, const void *src, int samples)
|
|
{
|
|
{
|
|
struct st_sample *out = dst;
|
|
struct st_sample *out = dst;
|
|
IN_T *in = (IN_T *) src;
|
|
IN_T *in = (IN_T *) src;
|
|
-#ifdef CONFIG_MIXEMU
|
|
|
|
- if (vol->mute) {
|
|
|
|
- mixeng_clear (dst, samples);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
-#else
|
|
|
|
- (void) vol;
|
|
|
|
-#endif
|
|
|
|
|
|
+
|
|
while (samples--) {
|
|
while (samples--) {
|
|
- out->l = VOL (glue (conv_, ET) (*in++), vol->l);
|
|
|
|
- out->r = VOL (glue (conv_, ET) (*in++), vol->r);
|
|
|
|
|
|
+ out->l = glue (conv_, ET) (*in++);
|
|
|
|
+ out->r = glue (conv_, ET) (*in++);
|
|
out += 1;
|
|
out += 1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
static void glue (glue (conv_, ET), _to_mono)
|
|
static void glue (glue (conv_, ET), _to_mono)
|
|
- (struct st_sample *dst, const void *src, int samples, struct mixeng_volume *vol)
|
|
|
|
|
|
+ (struct st_sample *dst, const void *src, int samples)
|
|
{
|
|
{
|
|
struct st_sample *out = dst;
|
|
struct st_sample *out = dst;
|
|
IN_T *in = (IN_T *) src;
|
|
IN_T *in = (IN_T *) src;
|
|
-#ifdef CONFIG_MIXEMU
|
|
|
|
- if (vol->mute) {
|
|
|
|
- mixeng_clear (dst, samples);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
-#else
|
|
|
|
- (void) vol;
|
|
|
|
-#endif
|
|
|
|
|
|
+
|
|
while (samples--) {
|
|
while (samples--) {
|
|
- out->l = VOL (glue (conv_, ET) (in[0]), vol->l);
|
|
|
|
|
|
+ out->l = glue (conv_, ET) (in[0]);
|
|
out->r = out->l;
|
|
out->r = out->l;
|
|
out += 1;
|
|
out += 1;
|
|
in += 1;
|
|
in += 1;
|
|
@@ -174,4 +150,3 @@ static void glue (glue (clip_, ET), _from_mono)
|
|
|
|
|
|
#undef ET
|
|
#undef ET
|
|
#undef HALF
|
|
#undef HALF
|
|
-#undef VOL
|
|
|