Clicking on a track in the track menu now just selects the track
Fixed times in CDDB files git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13869 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8fe6296f19
commit
c0b8b2943e
@ -316,7 +316,7 @@ CDDBQuery::GetTrackTimes(const scsi_toc *toc, vector<cdaudio_time> ×)
|
||||
TrackRecord *tocData = (TrackRecord*)&(toc->toc_data[4]);
|
||||
int16 trackCount = toc->toc_data[3] - toc->toc_data[2] + 1;
|
||||
|
||||
for (int index = 0; index < trackCount; index++)
|
||||
for (int index = 0; index < trackCount+1; index++)
|
||||
{
|
||||
cdaudio_time cdtime;
|
||||
cdtime.minutes = tocData[index].min;
|
||||
@ -613,7 +613,8 @@ CDDBQuery::WriteFile(void)
|
||||
{
|
||||
entry = fTrackNames[i];
|
||||
|
||||
sprintf(timestring,"%.2ld:%.2ld",fTrackTimes[i].minutes, fTrackTimes[i].seconds);
|
||||
sprintf(timestring,"%.2ld:%.2ld",fTrackTimes[i+1].minutes-fTrackTimes[i].minutes,
|
||||
fTrackTimes[i].seconds);
|
||||
|
||||
entry << "\t" << timestring << "\n";
|
||||
file.Write(entry.String(),entry.Length());
|
||||
|
@ -458,7 +458,7 @@ void
|
||||
CDEngine::SelectTrack(int32 trackNumber)
|
||||
{
|
||||
sPlayList.SetCurrentTrack(trackNumber);
|
||||
if(playState.GetState() == kPlaying)
|
||||
if(GetState() == kPlaying)
|
||||
gCDDevice.Play(trackNumber);
|
||||
trackState.UpdateNow();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user