--- a/sc2src/sc2mpd.cpp
+++ b/sc2src/sc2mpd.cpp
@@ -195,18 +195,21 @@
void OhmReceiverDriver::Observer::process(OhmMsgAudio& aMsg)
{
if (++iCount == 400 || aMsg.Halt()) {
- static unsigned long long last_timestamp;
- unsigned long long timestamp = aMsg.MediaTimestamp();
LOGDEB("OhmRcvDrv::Process:audio: samplerate " << aMsg.SampleRate() <<
" bitdepth " << aMsg.BitDepth() << " channels " <<
aMsg.Channels() << " samples " << aMsg.Samples() <<
" Halted ? " << aMsg.Halt() << endl);
+#if 0
+ static unsigned long long last_timestamp;
+ unsigned long long timestamp = aMsg.MediaTimestamp();
if (last_timestamp) {
long long intervalus =
((timestamp - last_timestamp) * 1000000) / (256*48000);
long long atsus =
((timestamp) * 1000000) / (256*48000);
+
+ // Not too sure what this did. amicros not in chrono.cpp any more
long long absus = chron.amicros() - 1430477861905884LL;
LOGDEB("Computed-uS: " << intervalus <<
" Elapsed-uS: " << chron.urestart() <<
@@ -216,6 +219,7 @@
endl);
}
last_timestamp = timestamp;
+#endif
if (!aMsg.Halt()) {
unsigned int bytes =