mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-14 04:18:36 +00:00
Increased WaveOut buffer to 1500 ms
Fixed minor bugs where TransportView was updated incorrectly when switching tracks.
This commit is contained in:
parent
1295630230
commit
4a86e8698b
@ -37,7 +37,7 @@ public: unsigned long GetChannels() const { return m_waveFormatPCMEx.Forma
|
||||
public: unsigned long GetBlockSize() const { return m_BlockSize; }
|
||||
//TODO: decide how to set this when integrating with mC2
|
||||
public: unsigned long GetOutputDevice() const { return WAVE_MAPPER; };
|
||||
public: unsigned long GetBufferSizeMs() const { return 300; };
|
||||
public: unsigned long GetBufferSizeMs() const { return 1500; };
|
||||
|
||||
private: unsigned long ThreadProc(void);
|
||||
|
||||
|
@ -192,7 +192,7 @@ unsigned long Transport::TrackPosition() const
|
||||
|
||||
unsigned long Transport::TrackLength() const
|
||||
{
|
||||
if (this->activeStream) return this->openStreams[0]->LengthMs();
|
||||
if (this->activeStream) return this->activeStream->LengthMs();
|
||||
else return 0;
|
||||
}
|
||||
|
||||
|
@ -205,7 +205,6 @@ void TransportController::OnPlaybackStarted(musik::core::TrackPtr track)
|
||||
this->transportView.playButton->SetCaption(_T("Pause"));
|
||||
|
||||
this->transportView.timeDurationLabel->SetCaption(this->FormatTime(musik::core::PlaybackQueue::Instance().Transport().TrackLength()));
|
||||
// this->transportView.timeDurationLabel->SetCaption(track->GetValue("duration"));
|
||||
|
||||
this->transportView.playbackSlider->SetPosition(0);
|
||||
|
||||
@ -222,12 +221,13 @@ void TransportController::OnPlaybackStopped(musik::core::TrackPtr track)
|
||||
return;
|
||||
}
|
||||
|
||||
this->playing = false;
|
||||
this->paused = false;
|
||||
this->transportView.playButton->SetCaption(_T("Play"));
|
||||
|
||||
if (this->displayedTrack->id == track->id) // For out of order signals
|
||||
{
|
||||
this->playing = false;
|
||||
this->paused = false;
|
||||
|
||||
this->transportView.playButton->SetCaption(_T("Play"));
|
||||
|
||||
this->transportView.playbackSlider->SetPosition(0);
|
||||
this->playbackSliderTimer.Stop();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user