summaryrefslogtreecommitdiff
path: root/plugins/oss
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-12 20:36:37 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-12 20:36:37 +0100
commit8f6c03d93af6501c960360c77fd7540380e535dc (patch)
tree4d56f6fbf9dd14bbc219aac4bd435389d20ddb4b /plugins/oss
parenta2589162ebec9956ea0c7308194bdc27b8a3868b (diff)
added softvolume for all supported output formats; moved softvolume from output plugins to streamer
Diffstat (limited to 'plugins/oss')
-rw-r--r--plugins/oss/oss.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/oss/oss.c b/plugins/oss/oss.c
index 0f837c43..b78a2290 100644
--- a/plugins/oss/oss.c
+++ b/plugins/oss/oss.c
@@ -278,13 +278,7 @@ oss_thread (void *context) {
static int
oss_callback (char *stream, int len) {
- int bytesread = deadbeef->streamer_read (stream, len);
- int16_t ivolume = deadbeef->volume_get_amp () * 1000;
- for (int i = 0; i < bytesread/2; i++) {
- ((int16_t*)stream)[i] = (int16_t)(((int32_t)(((int16_t*)stream)[i])) * ivolume / 1000);
- }
-
- return bytesread;
+ return deadbeef->streamer_read (stream, len);
}
static int