os: show played times in Audio_out test

The message may be used by a run script to signal successfull testing.

Issue #1498.
This commit is contained in:
Josef Söntgen 2015-04-30 14:50:20 +02:00
parent 4b687f4b1a
commit df04b17594

View File

@ -87,6 +87,7 @@ class Track : Thread<8192>
for (int i = 0; i < CHN_CNT; ++i)
_audio_out[i]->start();
unsigned cnt = 0;
while (1) {
for (size_t offset = 0, cnt = 1;
@ -136,6 +137,8 @@ class Track : Thread<8192>
for (int i = 0; i < CHN_CNT; i++)
_audio_out[i]->submit(p[i]);
}
PLOG("played '%s' %u time(s)", _file, ++cnt);
}
}