CALL CONVA
This page was last modified 12:35, 12 September 2019 by Mars2000you.

Contents

Effect

Converts a PCM file into an ADPCM file.

The length of the ADPCM file will generally be half the length of the PCM file. If the original length is odd, it is divided by 2 and the part of the destination file corresponding to the integer part of the division result is converted. However, if you use the computer RAM as destination, the file type and the length will not be modified.

The sampling frequency will remain unmodified.

This instruction checks if the source file is in the PCM format. When it's not a PCM file, an "Illegal function call" error message is displayed.

Parameters

<source file> is a number between 0 and 15 to specify the PCM file that needs to be converted.

<destination file> is a number between 0 and 15 to specify the ADPCM file that will be the result of the conversion. It must be a number different from the <source file> number. The location of the destination file must be Sample RAM of first MSX-AUDIO chip, Sample RAM of second MSX-AUDIO chip, computer RAM or computer VRAM.'

Example

CALL CONVA(1,2)

Related to

CALL CONVP, CALL COPY PCM, CALL LOAD PCM, CALL MK PCM, CALL PLAY PCM, CALL REC PCM, CALL SAVE PCM, CALL SET PCM

Compatibility

MSX-AUDIO BASIC