Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User andrea993's Avatar
    Join Date
    Apr 2011
    Posts
    108
    I play sounds with CMdaAudioOutputStream and it work correctly but if I want to stopthe playing first that it had finished the application crashed.

    I've tryed with:

    Code:
    if(iStream)
    			{
                    iStream->Stop();
    			}
    But the application crashed

    Code:
    if(iStream)
    			{
                    iStream->KeepOpenAtEnd();
                    iStream->Stop();
    			}
    But tha applicaton crashed

    Code:
    if(iStream)
    			{
                    iStream->KeepOpenAtEnd();
                    iStream->RequestStop();
    			}
    But the strem didn't stop.

    What should I do?

  2. #2
    Nokia Developer Champion pavarang's Avatar
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    574
    Hello,
    it could be useful if you could tell us: where is the Stop called, where the error arises and which is the error/panic code.

    regards,
    pg

  3. #3
    Registered User andrea993's Avatar
    Join Date
    Apr 2011
    Posts
    108
    I don't know which is the error code, the application crash immidiatly when i call stop().
    I'm using qt creator and the error message is:

    The inferior stopped becouse it received a signal from the operative system
    Signal name: SIGSEGV
    Signal meaning: Segment fault

    And at the moment of the crash the application output is:
    "Received too much data from remote target; ignoring overflow.
    while parsing target library list: unclosed token"

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,680
    This is the kind of message you need: http://wiki.forum.nokia.com/index.ph...ded_panic_code
    On the device it can be enabled via installing that tiny ErrRd.sisx file, however for the Qt simulator, I do not know.

  5. #5
    Registered User andrea993's Avatar
    Join Date
    Apr 2011
    Posts
    108
    Thank you
    System error -39


    I had looked for this error:
    E32 (E32ERR.H) KErrAbort -39 Interrupted

    What do I do?

  6. #6
    Nokia Developer Champion vineet.jain's Avatar
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,833
    Not sure but you may call stop() inside some callback function which i think should be there & is called as soon as the stream is finished playing..
    Do Remember to Search for your query on Google/Forum Wiki& DiBo , it really saves your time & You get your queries answered(in most of the cases) before posting them on Dibo itself. :)

  7. #7
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,680
    Can it happen that your MaoscPlayComplete method contains a User::LeaveIfError(aError) line?

  8. #8
    Registered User andrea993's Avatar
    Join Date
    Apr 2011
    Posts
    108
    Quote Originally Posted by wizard_hu_ View Post
    Can it happen that your MaoscPlayComplete method contains a User::LeaveIfError(aError) line?
    No, because ther's the overflow error

    Quote Originally Posted by vineet.jain View Post
    Not sure but you may call stop() inside some callback function which i think should be there & is called as soon as the stream is finished playing..
    Yes, I call stop first that the stream finished playing, is it wrong?

  9. #9
    Nokia Developer Champion pavarang's Avatar
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    574
    Humm...maybe MaoscPlayComplete is not the only place to look into.
    I've checked into a Symbian book, "SymbianOS C++ for Mobile Phones, Vol. 3" pag. 669 and:

    If you want to stop the streaming immediately, you should call Stop()
    on the audio stream.
    iStream->Stop();
    In this case, you should expect the following callbacks:
    • MaoscBufferCopied() with an error of KErrAbort for each
    buffer that you have written to the stream but which has not yet been
    returned
    • MaoscPlayComplete() with an error of KErrCancel.
    These callbacks happen synchronously from within the call to Stop().
    By the time this call returns, you can be sure that streaming has terminated.
    so, if you haven't done yet, please look into aError of MaoscBufferCopied...

    There's also an example, just in case you haven't looked at it yet:
    https://www.developer.nokia.com/info...g_Example.html

    hope it helps somehow
    pg

  10. #10
    Registered User andrea993's Avatar
    Join Date
    Apr 2011
    Posts
    108
    Thank you I've solve...I had wrong the User::leave because I didn't know there are KErrAbort and KErrCancel.

    Thank you very much

    regards,
    Andrea993

Similar Threads

  1. How to stop one application from another?
    By dilipsinh in forum Symbian C++
    Replies: 30
    Last Post: 2011-04-16, 12:10
  2. Replies: 2
    Last Post: 2011-01-17, 10:11
  3. stop application
    By cool_eagle in forum Python
    Replies: 9
    Last Post: 2008-09-04, 15:21
  4. Replies: 1
    Last Post: 2008-08-01, 08:35
  5. 3650 Midi Stop Crash
    By Ncik in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-10-15, 05:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved