Comment 6 for bug 366091

Revision history for this message
RJ Skerry-Ryan (rryan) wrote : Re: [Bug 366091] Re: Preview Library Tracks in Headphones

This feature is pretty easy to add:

1) Create an EngineChannel subclass in src/engine, something like
EnginePreviewDeck
  - return true for isPFL(), return false for isMaster()
  - Give it an EngineBuffer, EngineVuMeter and EngineClipping only (use
EngineDeck as a template)
  - Return something sensible for isActive() (ideally copy from EngineDeck
where appropriate)

2) Create a PreviewDeck derivative of BaseTrackPlayer in src/ (see Deck
and Sampler classes as examples)

3) Update PlayerManager (src/playermanager.cpp/h) to support creation of
PreviewDecks (we will probably only have 1 but it's best to think in terms
of multiple of them from the beginning in case we want to expand). Just
copy the code for samplers in PlayerManager to support an addPreviewDeck()
method just as there is an addSampler() method.

4) Add a PlayerManager::groupForPreviewDeck(int) method that returns
something like [PreviewDeckX]

5) In WTrackTableView (src/widget) add context menu support for loading a
track to to a preview deck. You could hard-code this one to support just
the first preview deck because we don't want a sub-menu if there is only
going to be one element.

That's pretty much it. It could be done in an hour or two of hacking for
someone who is already very familiar with Mixxx and probably a weekend for
someone new to the code if they just copy/paste from existing classes.

On Tue, Dec 6, 2011 at 8:01 AM, John Mitchell <email address hidden>wrote:

> I'd like this feature too. I work on the fly a lot at clubnights and
> gigs so the ability to really quickly find the right sound for after a
> band etc would be great.
>
> --
> You received this bug notification because you are a member of Mixxx
> Development Team, which is subscribed to Mixxx.
> https://bugs.launchpad.net/bugs/366091
>
> Title:
> Preview Library Tracks in Headphones
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mixxx/+bug/366091/+subscriptions
>