
|
This UIQ 3 example application shows how to stream audio files in other applications. Suitable for the P990, M600 and W950 UIQ 3-based phones, this application uses the CMdaAudioOutputStream class, system dialogs and generic building blocks from resources. This example has two main parts:
Download example application>> Audio is played using the CMdaAudioOutputStream class. There are few key things worth mentioning when using it. The user has to set the correct audio settings for a chosen audio file. If this is not done, an error might occur and audio will be played incorrectly (i.e. at the wrong speed) or there will be no audio at all. An audio engine built from this example application consists of two main parts:
The AppUi class is notified on changes in audio states and handles this properly (i.e. by passing event information to be displayed by view class to the user).
To be able to play audio, the user has to be able to set some key features:
For choosing audio source folder and file, there are two system classes used:
This application uses the generic building block: CQikGenericBuildingBlock (QIK_GENERIC_BUILDING_BLOCK, EQikCtGenericBuildingBlock) for inserting and managing used controls. Since the same column definition is used couple of times, use '#define' macro in resources which will reuse the required code. An additional functionality removes unwanted commands normally added automatically by the system (in DynInitOrDeleteCommandL function). This application works in portrait and landscape modes on the Sony Ericsson P990, M600 and W950 UIQ 3-based phones and to build this project, use the following commands: $ bldmake bldfiles
Also see the P990 Developers' Guidelines>> | |||
Copyright © 2001 - 2009 Sony Ericsson Mobile Communications AB. All Rights Reserved.