diff options
Diffstat (limited to 'apps/plugins/pacbox/wsg3.h')
-rw-r--r-- | apps/plugins/pacbox/wsg3.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/pacbox/wsg3.h b/apps/plugins/pacbox/wsg3.h index 1ee385cdf9..fa71cd44f0 100644 --- a/apps/plugins/pacbox/wsg3.h +++ b/apps/plugins/pacbox/wsg3.h | |||
@@ -56,7 +56,7 @@ struct wsg3 | |||
56 | unsigned char sound_prom[32*8]; | 56 | unsigned char sound_prom[32*8]; |
57 | unsigned resample_step; | 57 | unsigned resample_step; |
58 | unsigned wave_offset[3]; | 58 | unsigned wave_offset[3]; |
59 | int sound_wave_data[32*8]; | 59 | int16_t sound_wave_data[32*8]; /* sign-extended 4-bit, prenormalized */ |
60 | }; | 60 | }; |
61 | 61 | ||
62 | extern struct wsg3 wsg3; | 62 | extern struct wsg3 wsg3; |
@@ -106,7 +106,7 @@ static inline unsigned char wsg3_get_register(unsigned reg) | |||
106 | @param buf pointer to sound buffer that receives the audio samples | 106 | @param buf pointer to sound buffer that receives the audio samples |
107 | @param len length of the sound buffer | 107 | @param len length of the sound buffer |
108 | */ | 108 | */ |
109 | void wsg3_play_sound(int * buf, int len); | 109 | void wsg3_play_sound(int16_t * buf, int len); |
110 | 110 | ||
111 | /** | 111 | /** |
112 | Returns the sampling rate currently in use for rendering sound. | 112 | Returns the sampling rate currently in use for rendering sound. |