Human68k CUI emulator with sound.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vgm.h 516B

12345678910111213141516171819
  1. #pragma once
  2. #include <stdio.h>
  3. #include <stdint.h>
  4. struct vgm_logger {
  5. FILE *f;
  6. int last_wait, total_samples;
  7. size_t size;
  8. };
  9. int vgm_logger_begin(struct vgm_logger *, char *);
  10. void vgm_logger_wait(struct vgm_logger *, int samples);
  11. void vgm_logger_write_ay(struct vgm_logger *, uint8_t reg, uint8_t data);
  12. void vgm_logger_write_ym2151(struct vgm_logger *, uint8_t reg, uint8_t data);
  13. void vgm_logger_write_okim6258(struct vgm_logger *, uint8_t reg, uint8_t data);
  14. void vgm_logger_end(struct vgm_logger *);