×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    Compilation Error for CMdaAudioInputStream - HELP :(

    hi,

    I am trying to use CMdaAudioInputStream class to record my voice, I instantiate CMdaAudioInputStream as the following :
    Code:
    CAudioInputCallback *audioCallback = CAudioInputCallback::NewLC();
    CMdaAudioInputStream *audio =  CMdaAudioInputStream::NewL(audioCallback);
    but the second line gets the following compilation error :

    Code:
    	function call 'NewL({lval} CAudioInputCallback *)' does not match
    Please guide me how to resolve the mentioned error?

    (CAudioInputCallback class is my custome class which implements CMdaAudioInputStreamCallBack)

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: Compilation Error for CMdaAudioInputStream - HELP :(

    Code:
    CMdaAudioInputStream *audio =  CMdaAudioInputStream::NewL(*audioCallback);
    It requires the object (and takes it as a reference), not a pointer.

    Note that generally these classes are not to be used as local variables.

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    7

    Re: Compilation Error for CMdaAudioInputStream - HELP :(

    Oops, you are right mate, thanks for your prompt reply
    ASHEGHE IRANAM...

Similar Threads

  1. Compilation error
    By jean34 in forum Symbian
    Replies: 5
    Last Post: 2009-02-03, 21:30
  2. Compilation error
    By pankaj gupta55 in forum Symbian
    Replies: 11
    Last Post: 2008-11-20, 13:46
  3. Replies: 4
    Last Post: 2007-05-31, 07:06
  4. VS Compilation Error
    By nagir in forum Symbian
    Replies: 2
    Last Post: 2005-12-19, 15:48
  5. yet another compilation error
    By sataer in forum Symbian
    Replies: 1
    Last Post: 2005-09-09, 08:40

Posting Permissions

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