start soundcard time source
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6611 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0669f665be
commit
fce6c4e478
@ -442,6 +442,7 @@ DefaultManager::FindTimeSource()
|
||||
if (B_OK == BMediaRoster::Roster()->GetNodeFor(fPhysicalAudioOut, &clone)) {
|
||||
if (clone.kind & B_TIME_SOURCE) {
|
||||
fTimeSource = clone.node;
|
||||
BMediaRoster::Roster()->StartTimeSource(clone, system_time() + 1000);
|
||||
BMediaRoster::Roster()->ReleaseNode(clone);
|
||||
printf("Default DAC timesource created!\n");
|
||||
return;
|
||||
@ -472,6 +473,7 @@ DefaultManager::FindTimeSource()
|
||||
continue;
|
||||
printf("Default DAC timesource \"%s\" created!\n", info[i].name);
|
||||
fTimeSource = info[i].node.node;
|
||||
BMediaRoster::Roster()->StartTimeSource(info[i].node, system_time() + 1000);
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user