[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 11/26] audio: Unfold OPLSAMPLE
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 11/26] audio: Unfold OPLSAMPLE |
Date: |
Wed, 26 Apr 2017 00:37:24 +0200 |
It was used only once, and now it was always int16_t.
Signed-off-by: Juan Quintela <address@hidden>
---
hw/audio/fmopl.c | 2 +-
hw/audio/fmopl.h | 11 -----------
2 files changed, 1 insertion(+), 12 deletions(-)
diff --git a/hw/audio/fmopl.c b/hw/audio/fmopl.c
index 8f935f6..b1cb4b4 100644
--- a/hw/audio/fmopl.c
+++ b/hw/audio/fmopl.c
@@ -988,7 +988,7 @@ void YM3812UpdateOne(FM_OPL *OPL, int16_t *buffer, int
length)
{
int i;
int data;
- OPLSAMPLE *buf = buffer;
+ int16_t *buf = buffer;
uint32_t amsCnt = OPL->amsCnt;
uint32_t vibCnt = OPL->vibCnt;
uint8_t rhythm = OPL->rhythm&0x20;
diff --git a/hw/audio/fmopl.h b/hw/audio/fmopl.h
index 1e74019..c236287 100644
--- a/hw/audio/fmopl.h
+++ b/hw/audio/fmopl.h
@@ -3,17 +3,6 @@
#include <stdint.h>
-/* --- system optimize --- */
-/* select bit size of output : 8 or 16 */
-#define OPL_OUTPUT_BIT 16
-
-#if (OPL_OUTPUT_BIT==16)
-typedef int16_t OPLSAMPLE;
-#endif
-#if (OPL_OUTPUT_BIT==8)
-typedef unsigned char OPLSAMPLE;
-#endif
-
typedef void (*OPL_TIMERHANDLER)(int channel,double interval_Sec);
typedef void (*OPL_IRQHANDLER)(int param,int irq);
typedef void (*OPL_UPDATEHANDLER)(int param,int min_interval_us);
--
2.9.3
- [Qemu-devel] [PATCH 05/26] audio: Remove UINT8, (continued)
- [Qemu-devel] [PATCH 05/26] audio: Remove UINT8, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 06/26] audio: remove UINT16, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 07/26] audio: remove UINT32, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 08/26] audio: Remove INT8, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 09/26] audio: remove INT16, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 10/26] audio: Remove INT32, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 11/26] audio: Unfold OPLSAMPLE,
Juan Quintela <=
- [Qemu-devel] [PATCH 12/26] audio: Remove Unused OPL_TYPE_*, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 13/26] audio: Remove type field, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 14/26] audio: Remove unused fields, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 15/26] audio: GUSbyte is uint8_t, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 16/26] audio: remove GUSchar, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 17/26] audio: GUSword is uint16_t, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 18/26] audio: GUSword is uint16_t, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 19/26] audio: GUSsample is int16_t, Juan Quintela, 2017/04/25
- [Qemu-devel] [PATCH 20/26] audio: OPLSetIRQHandler is not used anywhere, Juan Quintela, 2017/04/25