[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [4269] musicpal: Fix output level of 8-bit samples (Jan Kis
From: |
Andrzej Zaborowski |
Subject: |
[Qemu-devel] [4269] musicpal: Fix output level of 8-bit samples (Jan Kiszka). |
Date: |
Sun, 27 Apr 2008 23:31:40 +0000 |
Revision: 4269
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4269
Author: balrog
Date: 2008-04-27 23:31:40 +0000 (Sun, 27 Apr 2008)
Log Message:
-----------
musicpal: Fix output level of 8-bit samples (Jan Kiszka).
Modified Paths:
--------------
trunk/hw/musicpal.c
Modified: trunk/hw/musicpal.c
===================================================================
--- trunk/hw/musicpal.c 2008-04-27 22:57:10 UTC (rev 4268)
+++ trunk/hw/musicpal.c 2008-04-27 23:31:40 UTC (rev 4269)
@@ -270,15 +270,15 @@
return;
if (s->playback_mode & MP_AUDIO_16BIT_SAMPLE)
- memcpy(wm8750_dac_buffer(s->wm, block_size >> 2),
+ memcpy(wm8750_dac_buffer(s->wm, block_size >> 2),
(uint32_t *)(s->target_buffer + s->play_pos),
block_size);
else {
codec_buffer = wm8750_dac_buffer(s->wm, block_size >> 1);
for (pos = 0; pos < block_size; pos += 2) {
- *codec_buffer++ = cpu_to_le16(2 *
+ *codec_buffer++ = cpu_to_le16(256 *
*(int8_t *)(s->target_buffer + s->play_pos + pos));
- *codec_buffer++ = cpu_to_le16(2 *
+ *codec_buffer++ = cpu_to_le16(256 *
*(int8_t *)(s->target_buffer + s->play_pos + pos + 1));
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [4269] musicpal: Fix output level of 8-bit samples (Jan Kiszka).,
Andrzej Zaborowski <=