Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 14:20, 5 June 2007.

Multi-channel audio playback

From Forum Nokia Wiki

Multimedia application or game developers may want to play multiple sound effects at the same time. Using CMdaAudioOutputStream class, it is possible to set up multi-channel sound playback with low latency. The linked sample application implements multi-channel audio playback. It plays a sound sample every time user selects Options -> Play menu option.


Contents

Design overview

  • The application uses client-server framework. The server is responsible to maintain a sound stream ( CMdaAudioOutputStream) and mix pre-loaded samples.
  • The server thread is created in the same process as the client to make sound sample access fast. (Client is responsible to maintain sound samples.)

CMultiChannelSoundServer

Server class that is responsible to create a server session. See Client-Server Framework to learn more about Client-Server infrastructure.

CMultiChannelSoundServerSession

Owns a CMdaAudioOutputStream and constantly mixes sound samples. Implements MMdaAudioOutputStreamCallback interface. CMultiChannelSoundServerSession provides steam data every time CMdaAudioOutputStream requests it.

RMultiChannelSoundClientSession

Client side helper class to access server functions conveniently. See Client-Server Framework to learn more about Client-Server infrastructure.

CMultiChannelSoundChannel

Represents one sound channel. It mixes the sample to the stream.

CMultiChannelSoundSample

Represents one sound sample. The sample must be in 8 bit PCM format.

CMultiChannelSoundPlayer

Responsible to manage sound channels. If all the channels are being used while a new sample is being attempted to play, then it reuses the channel that is started playing sample earliest.

CMultiChannelSoundManager

This is the API for the sound system's client. It sets up multi-channel sound system, loads sound samples and allows its clients to initiate playback.

Download

Image:MultiChannel.zip

Related Discussions
Thread Thread Starter Forum Replies Last Post
Background MIDlet to screen cwfvanoordt Mobile Java General 7 2004-02-04 20:02
Vibrating SP Midi - A little help offered a little more required! mrbadger Audio 7 2006-08-22 16:41
PushWAP audio playback russellwilsonr Audio 0 2005-01-13 23:04
Channel to start an Obex Connection through BT jmbene Bluetooth Technology 3 2007-03-30 19:02
Last question (I hope) about the audio module lothaekor Python 3 2005-11-03 16:31
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZgamesQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX