Skip to content

Instantly share code, notes, and snippets.

@uobikiemukot
Created September 9, 2015 16:13
Show Gist options
  • Select an option

  • Save uobikiemukot/2ca06141931f22f8ebbe to your computer and use it in GitHub Desktop.

Select an option

Save uobikiemukot/2ca06141931f22f8ebbe to your computer and use it in GitHub Desktop.

Revisions

  1. uobikiemukot created this gist Sep 9, 2015.
    20 changes: 20 additions & 0 deletions vgm.h.diff
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    --- vgm.h.orig 2015-09-10 01:12:19.019687382 +0900
    +++ vgm.h 2015-09-10 01:12:42.259665862 +0900
    @@ -224,7 +224,7 @@
    spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x10, 0x13);
    spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x10, 0x80);
    spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x00, 0x60);
    - spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x01, 0x02);
    + spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x01, 0x00);

    spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x02, low_byte(start_addr));
    spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x03, high_byte(start_addr));
    @@ -238,8 +238,6 @@
    count = 0;
    while (count < adpcm_size) {
    spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x08, adpcm[count]);
    - spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x10, 0x1B);
    - spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x10, 0x13);
    count++;
    }
    spfm_send(serial_fd, OPNA_SLOT_NUM, 0x01, 0x00, 0x00);