diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-06-02 22:30:41 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-06-02 22:30:41 -0700 |
commit | 449f2b429ea43db20b024b30027627f0fdee4634 (patch) | |
tree | 76bce1ebd59d1fd2ef76ac853b5cb30a87f77dd1 /ym2612.c | |
parent | b11d4e8244ff20e715875f510c097b8c1db88fa5 (diff) |
Initial stab at feedback
Diffstat (limited to 'ym2612.c')
-rw-r--r-- | ym2612.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |