This is a post by the creator cfillion
Quote
Use a section source to specify playback start/end time or reverse:
Code
local source  = reaper.PCM_Source_CreateFromFile(file)
local section = reaper.PCM_Source_CreateFromType('SECTION')
reaper.CF_PCM_Source_SetSectionInfo(section, source, ...)
reaper.PCM_Source_Destroy(source)
local preview = reaper.CF_CreatePreview(section)
reaper.PCM_Source_Destroy(section)

reaper.CF_Preview_SetOutputTrack(preview, nil, track)
reaper.CF_Preview_Play(preview) -- after configuring the preview
reaper.CF_PCM_Source_SetSectionInfo(PCM_source section, PCM_source source, number offset, number length, boolean reverse)