summaryrefslogtreecommitdiff
path: root/ym2612.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-06-02 22:30:41 -0700
committerMike Pavone <pavone@retrodev.com>2013-06-02 22:30:41 -0700
commit449f2b429ea43db20b024b30027627f0fdee4634 (patch)
tree76bce1ebd59d1fd2ef76ac853b5cb30a87f77dd1 /ym2612.c
parentb11d4e8244ff20e715875f510c097b8c1db88fa5 (diff)
Initial stab at feedback
Diffstat (limited to 'ym2612.c')
-rw-r--r--ym2612.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ym2612.c b/ym2612.c
index ea95bc2..7199565 100644
--- a/ym2612.c
+++ b/ym2612.c
@@ -155,7 +155,7 @@ void ym_init(ym2612_context * context, uint32_t sample_rate, uint32_t clock_rate
}
}
-#define YM_VOLUME_DIVIDER 1
+#define YM_VOLUME_DIVIDER 2
void ym_run(ym2612_context * context, uint32_t to_cycle)
{
@@ -267,7 +267,9 @@ void ym_run(ym2612_context * context, uint32_t to_cycle)
switch (op % 4)
{
case 0://Operator 1
- //TODO: Feedback
+ if (chan->feedback) {
+ mod = operator->output >> (10-chan->feedback);
+ }
break;
case 1://Operator 3
switch(chan->algorithm)