ad_trans

From ArchaicPixels: HuC and PCEAS Documentation

Jump to: navigation, search

ad_trans(int ovl_index, int sect_offset, char nb_sectors, int ad_addr);    [ 3.21+ ]

Transfer data from CDROM into adpcm buffer.

  ovl_index - index of the CD overlay from where to grab the data
  sect_offset - sector offset in the overlay
  nb_sector - number of sectors (2K) to read
  ad_addr - ADPCM address to dump the data to

Read ADPCM data from the overlay segment specified by 'ovl_index', with sector offset (ie. multiples of 2048 bytes) of 'sect_offset'.

Read 'nb_sectors' sectors and store data into adpcm buffer starting from offset 'ad_addr'.

A non-zero return values indicate errors.

Personal tools