×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    10

    Playing a tone and a sound at the same time?

    I'm writing a Series 60 1.x app that includes sound. The app has a tone player, based on a class that looks like this:

    class CTonePlayer : public CBase, public MMdaAudioToneObserver

    The app also has a sound player, based on a class that looks like this:

    class CSoundPlayer: public CBase, public MMdaAudioPlayerCallback

    The tone player plays a tone every time a bitmap moves. The sound player occasionally plays a wav file. These both work fine. At times the tone and wav file must play simultaneously. That's the problem. When that happens, afterwards one or the other of the sounds won't play any more. I suppose the play complete callbacks are getting confused. Do I need to somehow play these in separate channels? I can't find any documentation on doing that. Any ideas?

    Thanks,

    Dan

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,175

    Re: Playing a tone and a sound at the same time?

    basically you can play only one audio sound at any time. So you have two options to get this working.

    1. Pause the wav file your tone plays. Just save the current position and start playing the file again after the tone has finished.

    2. Mix to the tone audio with wav audio and play them simultaneously.

    yucca

Similar Threads

  1. Sound Effects (tone, not wav) 6610
    By SenseiTG in forum Mobile Java Media (Graphics & Sounds)
    Replies: 6
    Last Post: 2006-05-29, 03:11
  2. Turn off the Sound of Rining Tone ..
    By mudhahka in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-08-11, 08:26
  3. help!Key can stop playing tone Sound In 7650?!
    By zqz in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2004-01-30, 11:16
  4. Playing sound on Nokia 3510i and 7210
    By flashxp in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2003-04-28, 14:51
  5. playing Tone audio hangs 7650
    By ajay_sipl in forum Mobile Java General
    Replies: 0
    Last Post: 2002-10-30, 01:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×