Mercurial > repos > blastem
comparison psg.h @ 1551:ce1f93be0104
Small cleanup to audio interface between emulation code and renderer backend
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 28 Mar 2018 23:36:08 -0700 |
parents | 4e5797b3935a |
children | 6ce36c3f250b |
comparison
equal
deleted
inserted
replaced
1550:b525491b4e5b | 1551:ce1f93be0104 |
---|---|
6 #ifndef PSG_CONTEXT_H_ | 6 #ifndef PSG_CONTEXT_H_ |
7 #define PSG_CONTEXT_H_ | 7 #define PSG_CONTEXT_H_ |
8 | 8 |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include "serialize.h" | 10 #include "serialize.h" |
11 #include "render.h" | |
11 | 12 |
12 typedef struct { | 13 typedef struct { |
13 int16_t *audio_buffer; | 14 int16_t *audio_buffer; |
14 int16_t *back_buffer; | 15 audio_source *audio; |
15 uint64_t buffer_fraction; | 16 uint64_t buffer_fraction; |
16 uint64_t buffer_inc; | 17 uint64_t buffer_inc; |
17 uint32_t buffer_pos; | 18 uint32_t buffer_pos; |
18 uint32_t clock_inc; | 19 uint32_t clock_inc; |
19 uint32_t cycles; | 20 uint32_t cycles; |