CRload_wav | R Documentation |
Loads a wav-file specified in wavfile, adds it to wav_list. wavfile argument must provide full path, filename and extension of file. Wav_list can later be provided to CRclose
to close resource. Before loading wav, CRinit_audio
must be called.
CRload_wav(wav_list, wavfile, status = NULL)
wav_list |
a list of wav files previously loaded (possibly empty), to which the loaded wav file is added. |
wavfile |
wav file (full path, filename, extension) to be loaded. |
status |
Optional list |
Returns updated wav_list with loaded wav-file added. If everything worked fine, returned wav_list has an integer valid
set to 1
.
CRinit_audio()
wavs <- list()
wavs <- CRload_wav(wavs, "C:/Documents/sound1.wav")
wavs <- CRload_wav(wavs, "C:/Documents/sound2.wav")
wavs <- CRload_wav(wavs, "C:/Documents/sound3.wav")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.