-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
add [ChannelX],loaded ControlObject #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
3275a67
9d1adf3
a1eb4dc
6e75372
c3bfc62
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -185,6 +185,8 @@ EngineBuffer::EngineBuffer(QString group, UserSettingsPointer pConfig, | |
| this, SLOT(slotEjectTrack(double)), | ||
| Qt::DirectConnection); | ||
|
|
||
| m_pTrackLoaded = new ControlPushButton(ConfigKey(m_group, "loaded")); | ||
|
|
||
| // Quantization Controller for enabling and disabling the | ||
| // quantization (alignment) of loop in/out positions and (hot)cues with | ||
| // beats. | ||
|
|
@@ -483,6 +485,7 @@ void EngineBuffer::slotTrackLoading() { | |
| // Set play here, to signal the user that the play command is adopted | ||
| m_playButton->set((double)m_bPlayAfterLoading); | ||
| m_pTrackSamples->set(0); // Stop renderer | ||
| m_pTrackLoaded->set(1); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not loaded at this point -- this signals CachingReader to load the track and see if it's valid. We should set to zero here, then 1 in slotTrackLoaded (line 519, where we set track_samples).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Whoops, that's what I meant to do. |
||
| } | ||
|
|
||
| TrackPointer EngineBuffer::loadFakeTrack(double filebpm) { | ||
|
|
@@ -550,6 +553,7 @@ void EngineBuffer::ejectTrack() { | |
| //qDebug() << "EngineBuffer::ejectTrack()"; | ||
| m_pause.lock(); | ||
| m_iTrackLoading = 0; | ||
| m_pTrackLoaded->set(0); | ||
| m_pTrackSamples->set(0); | ||
| m_pTrackSampleRate->set(0); | ||
| TrackPointer pTrack = m_pCurrentTrack; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you name it track_loaded?