@@ -2,7 +2,6 @@ package playback
22
33import (
44 "github.com/gotracker/gomixing/volume"
5- device "github.com/gotracker/gosound"
65
76 "github.com/gotracker/playback"
87 "github.com/gotracker/playback/format/it/channel"
@@ -12,10 +11,11 @@ import (
1211 itPeriod "github.com/gotracker/playback/format/it/period"
1312 "github.com/gotracker/playback/index"
1413 "github.com/gotracker/playback/note"
14+ "github.com/gotracker/playback/output"
1515 playpattern "github.com/gotracker/playback/pattern"
1616 "github.com/gotracker/playback/player"
1717 "github.com/gotracker/playback/player/feature"
18- "github.com/gotracker/playback/player/output "
18+ "github.com/gotracker/playback/player/render "
1919 "github.com/gotracker/playback/player/state"
2020 "github.com/gotracker/playback/song"
2121)
@@ -32,7 +32,7 @@ type Manager struct {
3232
3333 preMixRowTxn * playpattern.RowUpdateTransaction
3434 postMixRowTxn * playpattern.RowUpdateTransaction
35- premix * device .PremixData
35+ premix * output .PremixData
3636
3737 rowRenderState * rowRenderState
3838 OnEffect func (playback.Effect )
@@ -64,11 +64,11 @@ func NewManager(song *layout.Song) (*Manager, error) {
6464
6565 m .SetNumChannels (len (song .ChannelSettings ))
6666 for i , ch := range song .ChannelSettings {
67- oc := m .GetOutputChannel (ch .OutputChannelNum , m .channelInit )
67+ oc := m .GetRenderChannel (ch .OutputChannelNum , m .channelInit )
6868
6969 cs := m .GetChannel (i )
7070 cs .SetSongDataInterface (song )
71- cs .SetOutputChannel (oc )
71+ cs .SetRenderChannel (oc )
7272 cs .SetGlobalVolume (m .GetGlobalVolume ())
7373 cs .SetActiveVolume (ch .InitialVolume )
7474 cs .SetChannelVolume (ch .ChannelVolume )
@@ -121,17 +121,17 @@ func (m *Manager) SetNumChannels(num int) {
121121 cs .Trigger .Reset ()
122122 cs .RetriggerCount = 0
123123 _ = cs .SetData (nil )
124- ocNum := m .song .GetOutputChannel (ch )
125- cs .Output = m .GetOutputChannel (ocNum , m .channelInit )
124+ ocNum := m .song .GetRenderChannel (ch )
125+ cs .RenderChannel = m .GetRenderChannel (ocNum , m .channelInit )
126126
127127 if m .enableNewNoteActions {
128128 cs .PastNotes = & m .PastNotes
129129 }
130130 }
131131}
132132
133- func (m * Manager ) channelInit (ch int ) * output .Channel {
134- return & output .Channel {
133+ func (m * Manager ) channelInit (ch int ) * render .Channel {
134+ return & render .Channel {
135135 ChannelNum : ch ,
136136 Filter : nil ,
137137 GetSampleRate : m .GetSampleRate ,
0 commit comments