private void updatePreview ( TrackMetadataUpdate update , WaveformPreview preview ) { previewHotCache . put ( DeckReference . getDeckReference ( update . player , 0 ) , preview ) ; // Main deck if ( update . metadata . getCueList ( ) != null ) { // Update the cache with any hot cues in this track as well for ( CueList . Entry entry : update . metadata . getCueList ( ) . entries ) { if ( entry . hotCueNumber != 0 ) { previewHotCache . put ( DeckReference . getDeckReference ( update . player , entry . hotCueNumber ) , preview ) ; } } } deliverWaveformPreviewUpdate ( update . player , preview ) ; }
We have obtained a waveform preview for a device so store it and alert any listeners .