Preview button in library re-loads tracks on every mouse-down, no way to stop playback

Bug #1084460 reported by jus
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mixxx
Fix Released
Low
Max Linke

Bug Description

Tested with latest lp:mixxx/1.11

How to reproduce:
* Activate "Preview" column header in library table
* Select a track and press the Preview button
* Track is loaded to the (invisible) preview deck and starts to play
* Press the Preview button again

Expected behavior:
* Playback stops and track unloads from Preview deck

Actual behavior:
* Track is loaded again into the preview deck and playback stops only if the track reaches its end

While we can use the play/pause button on the visible previewdeck do halt the playback, imo it would be practical to have the said functionality for the preview button. This way you could rapidly scan trough your tracks without the need to have a Preview Deck visible to stop the playback. Another benefit would be that we can connect the Preview button to a Keyboard shortcut.

Revision history for this message
Max Linke (max-linke) wrote :

I've added a patch that should produce your desired behaviour

Changed in mixxx:
status: New → Confirmed
assignee: nobody → Max Linke (max-linke)
Revision history for this message
RJ Skerry-Ryan (rryan) wrote :

Thanks Max! Instead of storing the track in the Handler you should use PlayerInfo::getTrackInfo("[PreviewDeck1]"). That way if someone drags a track to a preview deck via the Overview or right-click -> Load to Preview Deck then you will always be checking against the currently loaded track.

Revision history for this message
Max Linke (max-linke) wrote :

Like this?

Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: [Bug 1084460] Re: Preview button in library re-loads tracks on every mouse-down, no way to stop playback

Yep, LGTM. Please commit to lp:mixxx/1.11

On Thu, Nov 29, 2012 at 12:15 PM, Max Linke <email address hidden>wrote:

> Like this?
>
> ** Patch added: "preview_v2.patch"
>
> https://bugs.launchpad.net/mixxx/+bug/1084460/+attachment/3447074/+files/preview_v2.patch
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/1084460
>
> Title:
> Preview button in library re-loads tracks on every mouse-down, no way
> to stop playback
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/1084460/+subscriptions
>

RJ Skerry-Ryan (rryan)
Changed in mixxx:
milestone: none → 1.11.0
importance: Undecided → Low
Max Linke (max-linke)
Changed in mixxx:
status: Confirmed → Fix Committed
RJ Skerry-Ryan (rryan)
Changed in mixxx:
status: Fix Committed → Fix Released
Revision history for this message
Swiftb0y (swiftb0y) wrote :

Mixxx now uses GitHub for bug tracking. This bug has been migrated to:
https://github.com/mixxxdj/mixxx/issues/6723

lock status: Metadata changes locked and limited to project staff
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.