Hi, snd_pcm_frames_to_bytes() is not working fine on the device. Using GetBytesActuallyPlayedUsingTStamps() works fine. Changes are checked into Atlas310 and HEAD.
Thanks, Deepak Jain > > On Jun 22, 2009, at 9:19 AM, Deepak Jain wrote: > >> Project: Real Player for MID - ARM. >> >> Synopsis: Fix for audio looping issue on RP4MID - ARM >> >> Overview: >> >> Using GetBytesActuallyPlayedUsingTStamps() method instead of >> GetBytesActuallyPlayedUsingDelay() since the second method resulting >> in >> very high bytes_delay. > > Does that mean snd_pcm_frames_to_bytes() is not working on your > platform? Do you know why? > > The diff looks good for 310Atlas and HEAD. > > --greg. > > > >> >> Files Modified: >> audio/device/platform/unix/audlinux_alsa.cpp >> >> Image Size and Heap Use impact (Client -Only): >> None. >> >> Platforms and Profiles Affected: >> None. >> >> Distribution Libraries Affected: >> None. >> >> Distribution library impact and planned action: >> None. >> >> Platforms and Profiles Build Verified: >> BIF: hxcleint_3_1_0_atlas_restricted >> Target: player_mid_all_installers >> Profile: helix-client-moblin >> >> Branch: >> Atlas310, HEAD >> >> Thanks, >> Deepak Jain >> >> Index: audlinux_alsa.cpp >> =================================================================== >> RCS file: /cvsroot/audio/device/platform/unix/audlinux_alsa.cpp,v >> retrieving revision 1.9.2.7 >> diff -u -r1.9.2.7 audlinux_alsa.cpp >> --- audlinux_alsa.cpp 19 Jun 2009 04:06:15 -0000 1.9.2.7 >> +++ audlinux_alsa.cpp 22 Jun 2009 15:13:13 -0000 >> @@ -98,7 +98,7 @@ >> m_PeriodSize(0), >> #endif //HELIX_FEATURE_ALSA_WRITE_PERIOD_SIZE >> m_bGotInitialTrigger(FALSE), >> -#ifdef _XANDROS >> +#if defined(_XANDROS) || defined(LG_PORT) >> m_bUseMMAPTStamps(TRUE) >> #else >> m_bUseMMAPTStamps(FALSE) >> >> >> >> _______________________________________________ >> Audio-dev mailing list >> Audio-dev@helixcommunity.org >> http://lists.helixcommunity.org/mailman/listinfo/audio-dev > > _______________________________________________ Audio-dev mailing list Audio-dev@helixcommunity.org http://lists.helixcommunity.org/mailman/listinfo/audio-dev