private void updateMetadata ( CdjStatus update , TrackMetadata data ) { hotCache . put ( DeckReference . getDeckReference ( update . getDeviceNumber ( ) , 0 ) , data ) ; // Main deck if ( data . getCueList ( ) != null ) { // Update the cache with any hot cues in this track as well for ( CueList . Entry entry : data . getCueList ( ) . entries ) { if ( entry . hotCueNumber != 0 ) { hotCache . put ( DeckReference . getDeckReference ( update . getDeviceNumber ( ) , entry . hotCueNumber ) , data ) ; } } } deliverTrackMetadataUpdate ( update . getDeviceNumber ( ) , data ) ; }
We have obtained metadata for a device so store it and alert any listeners .