CRplay_wav: Plays wav-file.

View source: R/CRplay_wav.R

CRplay_wavR Documentation

Plays wav-file.

Description

Plays wav file in wav_list, previously loaded with CRload_wav. Note that audio system must first be initialized using CRinit_audio.

Usage

    CRplay_wav(wav_list, index, channel, status = NULL)

Arguments

wav_list

List of wav-files loaded with CRload_wav, containing the file to be played.

index

Index of file in wav_list to be played.

channel

Channel on which to play wav.

status

Optional list status with elements value and message to retrieve warnings and error messages.

Examples

    CRinit_audio()

    wavs <- CRload_wav(list(), "C:/Documents/sound1.wav")
    
    CRplay_wav(wavs, 1, 0)

lorweiuk/CREx documentation built on March 16, 2024, 3:04 a.m.