Estimating the time is just fine, we can just use last_sample_count+ticks_elapsed. The important thing in this change is the extra calls to the core's ontimesync.
--greg.
Liam Murray wrote:
Whenever that timer goes off we ask the audio device for the samples played count. I'm not sure how costly that call is. It possibly involves a context switch if CMMFDevSound actually asks the audio device for the count whenever SamplesPlayed() is called. Some of my recent changes resulted in us calling this a bit more frequently and I was wondering about the cost of these calls. Just something to keep in mind. We probably can look at the time it takes to get the audio time and if it seems significant we can ask for the actual time less frequently and estimate times in between based on the tick count.
Liam
At 08:50 AM 4/20/2005, Greg Wright wrote:
The core uses calls back from audio devices to help get work done outside of the Sync timer that also drives the core. Since we do not have a core thread on Symbian I would like to increase the frequency of OnTimeSync calls into the core.
HEAD, 150Cay, 201Cay.
--greg.
Index: platform/symbian/audsymbian.cpp
===================================================================
RCS file: /cvsroot/audio/device/platform/symbian/audsymbian.cpp,v
retrieving revision 1.29.2.1
diff -u -w -r1.29.2.1 audsymbian.cpp
--- platform/symbian/audsymbian.cpp 30 Mar 2005 20:58:41 -0000 1.29.2.1
+++ platform/symbian/audsymbian.cpp 20 Apr 2005 15:47:40 -0000
@@ -65,7 +65,7 @@
static UINT32 Scale(UINT32 v, UINT32 f0, UINT32 f1, UINT32 t0, UINT32 t1);
// interval between generated calls to OnTimeSync -const UINT32 TIMESYNC_CALLBACK_INTERVAL_MS = 100; +const UINT32 TIMESYNC_CALLBACK_INTERVAL_MS = 30;
CHXAudioDevice::CHXAudioDevice() : CActive(EPriorityHigh),
_______________________________________________ Audio-dev mailing list [email protected] http://lists.helixcommunity.org/mailman/listinfo/audio-dev
_______________________________________________ Porting-symbian mailing list [EMAIL PROTECTED] http://lists.helixcommunity.org/mailman/listinfo/porting-symbian
_______________________________________________ Audio-dev mailing list [email protected] http://lists.helixcommunity.org/mailman/listinfo/audio-dev
