mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
Quick and dirty sound for DOOM. Samplerate seems off, but it's just a demo.
This commit is contained in:
parent
e524ea4815
commit
39e7dddc5a
4 changed files with 83 additions and 10 deletions
|
|
@ -198,6 +198,9 @@ fn submain() !void {
|
|||
|
||||
while(true) {
|
||||
pd.doom_update();
|
||||
const doomSndBuf: [*]i16 = pd.doom_get_sound_buffer();
|
||||
uvm.renderAudio(doomSndBuf, 2048);
|
||||
|
||||
const fb: [*]const u8 = pd.doom_get_framebuffer(4);
|
||||
uvm.render(fb, WIDTH * HEIGHT * 4);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue