Skip to content

Commit

Permalink
Release SWS CF_Preview API demo v1.0.3 (#1415)
Browse files Browse the repository at this point in the history
Repair "through track" playback mode
  • Loading branch information
cfillion committed Jul 8, 2024
1 parent 7f67c13 commit 7ad3066
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Development/cfillion_SWS CF_Preview API demo.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- @description SWS CF_Preview API demo
-- @author cfillion
-- @version 1.0.2
-- @changelog No user-facing changes (internal code cleanup)
-- @version 1.0.3
-- @changelog Repair "through track" playback mode
-- @donation https://reapack.com/donate

package.path = reaper.ImGui_GetBuiltinPath() .. '/?.lua'
Expand Down Expand Up @@ -171,7 +171,7 @@ local function start()
if preview then reaper.CF_Preview_Stop(preview) end
preview = reaper.CF_CreatePreview(source)
if out_to_track then
reaper.CF_Preview_Setoutput_track(preview, output_proj, output_track)
reaper.CF_Preview_SetOutputTrack(preview, output_proj, output_track)
else
reaper.CF_Preview_SetValue(preview, 'I_OUTCHAN', output_chan)
end
Expand Down Expand Up @@ -224,7 +224,7 @@ local function window()

if outputSelect() then
if out_to_track then
reaper.CF_Preview_Setoutput_track(preview, output_proj, output_track)
reaper.CF_Preview_SetOutputTrack(preview, output_proj, output_track)
else
reaper.CF_Preview_SetValue(preview, 'I_OUTCHAN', output_chan)
end
Expand Down

0 comments on commit 7ad3066

Please sign in to comment.