Mercurial > repos > blastem
comparison psg.h @ 1002:8d032a368dd5
Made low pass filter frequency configurable
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 01 May 2016 13:36:14 -0700 |
parents | e6dc30231b83 |
children | 4e5797b3935a |
comparison
equal
deleted
inserted
replaced
1001:1dc749c9c0d9 | 1002:8d032a368dd5 |
---|---|
31 uint8_t noise_type; | 31 uint8_t noise_type; |
32 uint8_t latch; | 32 uint8_t latch; |
33 } psg_context; | 33 } psg_context; |
34 | 34 |
35 | 35 |
36 void psg_init(psg_context * context, uint32_t sample_rate, uint32_t master_clock, uint32_t clock_div, uint32_t samples_frame); | 36 void psg_init(psg_context * context, uint32_t sample_rate, uint32_t master_clock, uint32_t clock_div, uint32_t samples_frame, uint32_t lowpass_cutoff); |
37 void psg_free(psg_context *context); | 37 void psg_free(psg_context *context); |
38 void psg_adjust_master_clock(psg_context * context, uint32_t master_clock); | 38 void psg_adjust_master_clock(psg_context * context, uint32_t master_clock); |
39 void psg_write(psg_context * context, uint8_t value); | 39 void psg_write(psg_context * context, uint8_t value); |
40 void psg_run(psg_context * context, uint32_t cycles); | 40 void psg_run(psg_context * context, uint32_t cycles); |
41 | 41 |