@@ -68,7 +68,6 @@ function renderAudioClip(
6868 sessionEpoch : number ,
6969 labelColor : string ,
7070 context : TimelineClipRenderContext ,
71- elements : readonly TimelineElement [ ] ,
7271 labelInset ?: number ,
7372) : ReactNode {
7473 const audioUrl = resolveMediaPreviewUrl (
@@ -96,7 +95,7 @@ function renderAudioClip(
9695 sessionEpoch,
9796 priority : context . priority ,
9897 labelInset,
99- ...audioPillFlags ( el , elements ) ,
98+ ...audioPillFlags ( el ) ,
10099 } ) ;
101100 return createElement (
102101 ClipPeakMarks ,
@@ -136,7 +135,6 @@ export function useRenderClipContent({
136135 const effectiveMode = effectiveThumbnailMode ( thumbnailMode ) ;
137136 const sessionEpoch = usePlayerStore ( ( s ) => s . timelineSessionEpoch ) ;
138137 const thumbnailRevisions = usePlayerStore ( ( s ) => s . thumbnailRevisions ) ;
139- const elements = usePlayerStore ( ( s ) => s . elements ) ;
140138 return useCallback (
141139 // Pre-existing clip-content dispatcher; reduced by extracting renderAudioClip.
142140 // fallow-ignore-next-line complexity
@@ -151,7 +149,7 @@ export function useRenderClipContent({
151149 // Thumbnail generation disabled (perf) -> plain clip bars. Audio still shows
152150 // its waveform (cheap, not a frame thumbnail). Toggle: timeline toolbar.
153151 const waveform = ( labelInset ?: number ) =>
154- renderAudioClip ( el , pid , sessionEpoch , style . label , context , elements , labelInset ) ;
152+ renderAudioClip ( el , pid , sessionEpoch , style . label , context , labelInset ) ;
155153 if ( effectiveMode === "hidden" ) {
156154 return rendersWaveform ( el ) ? waveform ( ) : withSoundStrip ( el , null , waveform ) ;
157155 }
@@ -190,7 +188,7 @@ export function useRenderClipContent({
190188 // activePreviewUrl thumbnail branch; audio rows need waveform data, not a
191189 // captured frame from the currently drilled composition preview.
192190 if ( rendersWaveform ( el ) ) {
193- return renderAudioClip ( el , pid , sessionEpoch , style . label , context , elements ) ;
191+ return renderAudioClip ( el , pid , sessionEpoch , style . label , context ) ;
194192 }
195193
196194 if ( el . text ) return createElement ( TextClipContent , { text : el . text } ) ;
@@ -282,7 +280,6 @@ export function useRenderClipContent({
282280 effectiveMode ,
283281 sessionEpoch ,
284282 thumbnailRevisions ,
285- elements ,
286283 ] ,
287284 ) ;
288285}
0 commit comments