CALL REC PCM
This page was last modified 15:28, 17 May 2020 by Mars2000you.

Contents

Effect

Records an ADPCM/PCM audio file.

Tip: Use first CALL SET PCM.

Syntax

CALL REC PCM(<VoiceFile>,<Mode>,<Offset>,<Length>,<SamplingFrequency>,<Channel>)

Only the first parameter needs to be specified in all cases. Parameters can not end with a comma alone.

Parameters

<VoiceFile> is a number between 0 and 15, that specifies the ADPCM/PCM file.

<Mode> is used to specify the recording mode:

  • 0 = synchro start mode enabled (default value) - starts the recording when the sound comes in the input device
  • 1 = synchro start mode disabled

<Offset> is used to specify the offset where you want to start to record the audio file (several offsets of 256 bytes can be used by an ADPCM/PCM file) - Defaut value is 0.

<Length> is used to specify the number of offsets you want to record - Default value = until the end of the file

<SamplingFrequency> is exprimed in Hz and generally can vary from 1800 to 16000. The default value is the value set by the CALL SET PCM instruction.

<Channel> specifies the MSX-AUDIO channel to be used:

  • 0 = channel of first MSX-AUDIO chip
  • 1 = channel of second MSX-AUDIO chip

However, when using the Sample RAM or the Sample ROM, the recording is only possible on the channel used to connect the device.

This parameter generally does not need to be specified because it is already correctly initialised with the value set by the CALL SET PCM instruction.

Example

CALL REC PCM(3)

Related to

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

Compatibility

MSX-AUDIO BASIC