Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

CRingTonePlayer instance stops with KErrUnderflow error while playing a file (Known Issue)

From Wiki
Jump to: navigation, search

The VoIP Audio Service API (VAS) provides a ring tone player, CRingTonePlayer, which can be used to play back audio files locally as a ring tone. This stops when playing a file.

Article Metadata
Tested with
Devices(s): Tested on: Nokia E75, 5630
Platform(s): S60 3rd Edition, FP2
S60 5th Edition
S60 5th Edition
S60 3rd Edition FP2
Keywords: CRingTonePlayer, VoIP Audio Services
Created: User:Kbwiki (30 Aug 2010)
Last edited: hamishwillee (14 Jun 2013)


When an instance of CRingTonePlayer tries to play audio after being initialised, either using an open RFile handle or a path to a file, the player just generates a beep sound and stops with a KErrUnderflow (-10) error.

How to reproduce

The error can be reproduced using the VoIPTest (VoIP Audio Service API) example application which is available as part of the VAS API package. Steps to reproduce the error are given below:

  • Initialise and start the downlink stream.
  • Initialise the CRingTonePlayer using one of these methods:
    • Open( MRingToneObserver& aObserver, TPtr aFileName ), or
    • Open( MRingToneObserver& aObserver, RFile& aFileHandle )

Make sure a valid audio file is passed as a parameter

  • Call CRingTonePlayer::Play() to start playback.


No known solution.

This page was last modified on 14 June 2013, at 05:52.
73 page views in the last 30 days.