×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    104

    How do i test if the emulator plays sound at all?

    Hi everyone,

    I am trying to implement the Sound Mixer Example into my application. I have been trying for two weeks now starting with just playing wave files to now implementing the sound mixer example.

    But i dont get a single sound from the emulator.

    So i am wondering if the sound is even enabled in the emulator cause even with other applications like the radio i dont hear a single beep.

    Anyone able to tell me how i could test if the emulator sound is enabled?

    I implemented the Sound Mixer example and i am useing it like this:

    Code:
      _LIT(KMusicFile, "Z:\\resource\\apps\\music2.wav");
    
      // load sound samples
        CWavLoader* wavLoader = CWavLoader::NewLC();
      
        iMusicSample = wavLoader->LoadL(KMusicFile());
    
      
        CleanupStack::PopAndDestroy( wavLoader );
      
        // create sound mixer
        iSndMixer = CSndMixer::NewL();
      
        // make iMusicSample repeat itself
        iMusicSample.iRepEnd = iMusicSample.iLength;
      
        // and play music on channel 0 at 16KHz with volume 256 ( max )
        iSndMixer->Play( iMusicSample, 0, 16000, 256 );      
    
        self = this;
    
        CreateWindowL();
        SetRect(CEikonEnv::Static()->EikAppUi()->ApplicationRect()); 
    
        Timer = CPeriodic::NewL(CActive::EPriorityStandard);
    
        ActivateL();

    Would be awsome if anyone had an idea for me:-)

    I just want a little beep:-)

  2. #2
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: How do i test if the emulator plays sound at all?

    Hi,

    There is an example for playing and recording audio. Try to run that in your SDK

    http://forum.nokia.com/info/sw.nokia..._0_en.zip.html

    Hope this will help you to test weather your emulator plays sound or not.

    Br,
    Peter

  3. #3
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    104

    Re: How do i test if the emulator plays sound at all?

    Thx a lot peter!

    Downloaded the example plus the Extension plugins and got the whole thing to compile but when i run the full duplex example the application crashes with:

    Menu:
    System error (-1)

    38.100 [DOSSERVER] CDosSession::ServiceL()
    38.100 [DOSSERVER] CDosSession:ispatchMessageL()
    38.100 [DOSSERVER] dosService created, continuing...
    38.100 [DOSSERVER] Calling ExecuteMessageL...
    38.100 [DOSSERVER] CDosAccessoryBase::ExecuteMessageL()
    38.100 [DOSSERVER] EGetAccessoryMode
    38.105 CSysApAppUi::HandleMissedCallsIndicatorL()
    38.120 CSysApAppUi::InitializeStatusPaneAreaL(): accessories
    38.120 [DOSSERVER] CDosSession::ServiceL()
    38.120 [DOSSERVER] CDosSession:ispatchMessageL()
    38.120 [DOSSERVER] dosService created, continuing...
    38.120 [DOSSERVER] Calling ExecuteMessageL...
    38.120 [DOSSERVER] CDosAccessoryBase::ExecuteMessageL()
    38.120 [DOSSERVER] EGetAccessoryMode
    38.165 CSysApAppUi::InitializeStatusPaneAreaL(): msg
    38.190 CSysApAppUi::StateOfProperty. RProperty::Get: err=-1
    38.200 CSysApAppUi::HandleVoipStateChanged(): error: -858993460
    38.200 CSysApAppUi::StateOfProperty. RProperty::Get: err=-1
    38.235 CSysApAppUi::InitializeStatusPaneAreaL(): END
    i am really lost on what to try next:-(

    cant be that much of a pain to get sound going

  4. #4
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: How do i test if the emulator plays sound at all?

    Hi,

    Which is the SDK that you are using to run this example.?

    Peter

  5. #5
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    104

    Re: How do i test if the emulator plays sound at all?

    3rd Edition MR

  6. #6
    Super Contributor
    Join Date
    Oct 2005
    Posts
    739

    Re: How do i test if the emulator plays sound at all?

    Hi,

    I have tried that example, it runs in emulator without any errors, but it needs some plugins to start that so i can't test it properly.

    Now i just remebering an example code which i have used some months back, I have tried that on 2nd edition. But i think it will also work in 3rd edition.

    http://newlc.com/Playing-a-WAV-file.html?page=2 You will also get a zip file containing source code from here.

    Check with that and lets find will it work or not.

    Regards,
    Peter

  7. #7
    Registered User
    Join Date
    May 2007
    Location
    France
    Posts
    47

    Re: How do i test if the emulator plays sound at all?

    Emu is PC soundcard worst evil
    Try to log emu events (sorry forgot which file to modify to doso, gave up with emu long time ago)
    I suggest you try it on device, depending on you're working on a nasa server station or a laptop on-device debugging is almost as time-efficient than the big slow bugged emu.
    What's works on emu not always works on device, true for the opposite.
    Grab your cable, install TRK and tell us more.

    I confirm that SoundMixer as it's delivered works like a charm.

    Hope you could fix it

    my emu experience:
    Integrated Soundcard=> crash
    X-FI Soundcard=> have to disable
    Last edited by Noxh; 2007-07-27 at 10:03.

Similar Threads

  1. About Dialog
    By lilesh in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-05-30, 05:11
  2. MIDI Sound problem (J2ME / Series 60)
    By JPapke in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2004-10-29, 08:17
  3. 6600 - Call test during sound playback causes sound not to play any more
    By hdazza in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-08-27, 15:59
  4. 6600 - Call test during sound playback causes sound not to play any more
    By hdazza in forum General Development Questions
    Replies: 0
    Last Post: 2004-08-27, 15:59
  5. sound bug (possibly) on 6610
    By alex_crowther in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2004-02-05, 11:44

Posting Permissions

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