×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    42

    Audio Input Stream on N80

    hi,

    I'm trying to implement the audio input streaming example provided for v2 on the new sdk v3. i'm able to make it work on the emulator (start recording, stop recording and save) but when i install in N80, it is not able to start recording.

    basically, the program jumps from maiscopencomplete to maiscrecordcomplete, skipping the maiscbuffercopied function. the error returned in the recordcomplete is error 21. i have checked out, it is 'access denied'.

    Does anyone know why this error occur in the real device and not emulator?

    Thanks

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

    Re: Audio Input Stream on N80

    most likely you are missing some capabilities required by the classes, so check the output on your emulator to see which capabilities are reported missing.

    yucca

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    42

    Re: Audio Input Stream on N80

    hi yucca,

    thanks, but how do I check the output on emulator to see which capabilities are missing?

    Thanks

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Audio Input Stream on N80

    you could check the EPOCWIND.OUT in your temp directory, or at least if you are using codewarrior it is shown when you launch debugger inside the IDE
    yucca

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    42

    Re: Audio Input Stream on N80

    hi yucca,

    the text at the bottom is what i see as debugger message. I cant figure out where to see the missing capabilities. By the way, i tried
    CAPABILITY ALL -TCB
    and also
    CAPABILITY multimediadd
    but got error message when i tried to install application in the phone. "Required application access not granted".
    I wonder whether there is a capability associated with audio input streaming which require some sort of registration before i can use it for my application?
    Thanks

    137.710 Z:\sys\bin\wavegen.exe
    138.060 Thread wavegen.exe::Main created @ 0x16019a4 - Win32 Thread ID 0xd6c
    138.100 FontProvider: Category=1, TextPane Height=14; mapped request=12; typeface=Series 60 Sans SemiBold, actual range=14(a,d,exa,exd=9 3 1 1)
    138.115 FontProvider: Category=1, TextPane Height=32; mapped request=28; typeface=Series 60 Sans SemiBold, actual range=30(a,d,exa,exd=22 6 2 0)
    138.120 RAknUiServer::ConnectAknServer(), handle 0, wavegen
    138.120 RAknUiServer::ConnectAknServer() end
    138.120 FontProvider: Category=2, TextPane Height=24; mapped request=21; typeface=Series 60 Sans, actual range=22(a,d,exa,exd=16 5 2 -1)
    138.150 FontProvider: Category=4, TextPane Height=24; mapped request=20; typeface=Series 60 Sans SemiBold, actual range=22(a,d,exa,exd=14 6 3 -1)
    138.195 FontProvider: Category=3, TextPane Height=32; mapped request=28; typeface=Series 60 Sans TitleSmBd, actual range=30(a,d,exa,exd=22 6 2 0)
    138.195 FontProvider: Category=3, TextPane Height=26; mapped request=22; typeface=Series 60 Sans TitleSmBd, actual range=24(a,d,exa,exd=16 6 3 -1)
    138.220 FontProvider: Category=1, TextPane Height=32; mapped request=28; typeface=Series 60 Sans SemiBold, actual range=30(a,d,exa,exd=22 6 2 0)
    138.240 FontProvider: Category=3, TextPane Height=36; mapped request=34; typeface=Series 60 Sans TitleSmBd, actual range=36(a,d,exa,exd=27 7 2 0)
    138.245 FontProvider: Category=1, TextPane Height=24; mapped request=20; typeface=Series 60 Sans SemiBold, actual range=22(a,d,exa,exd=14 6 3 -1)
    138.280 content size: 28.0000x32.0000
    138.285 content size: 20.0000x32.0000
    138.290 content size: 28.0000x32.0000
    138.315 content size: 27.9990x32.0000
    138.320 content size: 20.0000x32.0000
    138.325 content size: 28.0000x32.0000
    138.350 FontProvider: Category=4, TextPane Height=12; mapped request=10; typeface=Series 60 Sans SemiBold, actual range=11(a,d,exa,exd=8 2 0 1)
    138.445 AKNSKINS: (Error) "CAknsAppSkinInstance::GetLayoutBitmap Srv update failed -1"
    138.480 CMMFAudioServer::NewSessionL - enter
    138.480 CMMFAudioServer::StartDevSoundServer - enter
    138.480 CMMFAudioServer::StartDevSoundServer - exit
    138.480 CStartAndMonitorDevSoundThread::StartDevSoundServer - enter
    138.615 Thread MMFAudioServer.exe::Local-015dca70 created @ 0x15dcd28 - Win32 Thread ID 0xac0
    138.720 RMMFDevSoundServerProxy::Open - enter
    138.730 RMMFDevSoundServerProxy::Open - exit
    138.730 CStartAndMonitorDevSoundThread::StartDevSoundServer - exit
    138.730 CMMFAudioServer::NewSessionL - session created
    138.735 CAknBitmapAnimation::SizeChanged instance:1e915790
    138.760 content size: 60.0000x80.0000
    138.795 CAknBitmapAnimation::SizeChanged instance:1e915790
    138.815 content size: 14.0000x14.0000
    138.820 content size: 14.0000x14.0000
    138.825 content size: 14.0000x14.0000
    138.835 content size: 14.0000x14.0000
    138.850 content size: 324.0000x14.0000
    138.870 content size: 324.0000x14.0000
    138.880 content size: 14.0000x236.0000
    138.895 content size: 14.0000x236.0000
    138.905 content size: 324.0000x236.0000
    138.920 CAknBitmapAnimation::StartAnimationL instance:1e915790
    138.970 RAknUiServer::ConnectAknServer(), handle 1081671721, EikAppUiServerThread
    138.970 RAknUiServer::ConnectAknServer() end
    138.975 Starter:EnvChange 4
    138.975 CDRMClock::TimeChanged
    138.975 CDRMClock::TimeChanged ok
    138.980 CMMFAudioServer::NewSessionL - enter
    138.980 CMMFAudioServer::StartDevSoundServer - enter
    138.980 CMMFAudioServer::StartDevSoundServer - exit
    138.980 CStartAndMonitorDevSoundThread::StartDevSoundServer - enter
    138.980 Thread MMFAudioServer.exe::Local-015dc778 created @ 0x15dca30 - Win32 Thread ID 0xde4
    139.060 RMMFDevSoundServerProxy::Open - enter
    139.065 RMMFDevSoundServerProxy::Open - exit
    139.065 CStartAndMonitorDevSoundThread::StartDevSoundServer - exit
    139.070 CMMFAudioServer::NewSessionL - session created
    139.090 CMMFAudioServer::NewSessionL - enter
    139.090 CMMFAudioServer::StartDevSoundServer - enter
    139.090 CMMFAudioServer::StartDevSoundServer - exit
    139.090 CStartAndMonitorDevSoundThread::StartDevSoundServer - enter
    139.095 Thread MMFAudioServer.exe::Local-015dd960 created @ 0x15ddc18 - Win32 Thread ID 0xdf0
    139.155 RMMFDevSoundServerProxy::Open - enter
    139.160 RMMFDevSoundServerProxy::Open - exit
    139.160 CStartAndMonitorDevSoundThread::StartDevSoundServer - exit
    139.165 CMMFAudioServer::NewSessionL - session created
    139.175 CAknBitmapAnimation::SizeChanged instance:1e923200
    139.175 CAknBitmapAnimation::SizeChanged instance:1e923200
    139.185 CAknBitmapAnimation::StartAnimationL instance:1e923200
    139.200 CMMFAudioServer::NewSessionL - enter
    139.200 CMMFAudioServer::StartDevSoundServer - enter
    139.200 CMMFAudioServer::StartDevSoundServer - exit
    139.200 CStartAndMonitorDevSoundThread::StartDevSoundServer - enter
    139.205 Thread MMFAudioServer.exe::Local-015dd35c created @ 0x15dd614 - Win32 Thread ID 0xdf4
    139.325 RAknUiServer::ConnectAknServer(), handle 1081671721, EikAppUiServerThread
    139.325 RAknUiServer::ConnectAknServer() end
    139.340 Starter:EnvChange 4
    139.340 CDRMClock::TimeChanged
    139.340 CDRMClock::TimeChanged ok
    139.345 RMMFDevSoundServerProxy::Open - enter
    139.350 RMMFDevSoundServerProxy::Open - exit
    139.350 CStartAndMonitorDevSoundThread::StartDevSoundServer - exit
    139.350 CMMFAudioServer::NewSessionL - session created
    139.350 CMMFAudioServer::NewSessionL - enter
    139.350 CMMFAudioServer::StartDevSoundServer - enter
    139.350 CMMFAudioServer::StartDevSoundServer - exit
    139.350 CStartAndMonitorDevSoundThread::StartDevSoundServer - enter
    139.460 Thread MMFAudioServer.exe::Local-015dd6cc created @ 0x15dd984 - Win32 Thread ID 0x780
    139.460 RMMFDevSoundServerProxy::Open - enter
    139.465 RMMFDevSoundServerProxy::Open - exit
    139.465 CStartAndMonitorDevSoundThread::StartDevSoundServer - exit
    139.465 CMMFAudioServer::NewSessionL - session created
    139.925 content size: 2.0000x416.0000
    139.960 content size: 352.0000x2.0000
    139.985 FontProvider: Category=1, TextPane Height=13; mapped request=11; typeface=Series 60 Sans SemiBold, actual range=12(a,d,exa,exd=9 2 0 1)
    139.990 content size: 6.0000x6.0000
    139.995 content size: 6.0000x6.0000
    140.005 content size: 6.0000x6.0000
    140.010 content size: 6.0000x6.0000
    140.015 content size: 252.0000x6.0000
    140.025 content size: 252.0000x6.0000
    140.030 content size: 6.0000x20.0000
    140.040 content size: 6.0000x20.0000
    140.045 content size: 252.0000x20.0000
    140.115 content size: 12.0000x32.0000
    140.120 content size: 12.0000x32.0000
    140.125 content size: 12.0000x32.0000
    140.130 content size: 12.0000x32.0000
    140.135 content size: 12.0000x32.0000
    140.140 content size: 12.0000x32.0000
    140.145 content size: 12.0000x32.0000
    140.150 content size: 12.0000x32.0000
    140.155 content size: 12.0000x32.0000
    140.160 content size: 12.0000x32.0000
    140.180 content size: 12.0000x32.0000
    140.185 content size: 12.0000x32.0000
    140.195 content size: 12.0000x32.0000
    140.200 content size: 12.0000x32.0000
    140.205 content size: 12.0000x32.0000
    140.210 content size: 12.0000x32.0000
    140.215 content size: 12.0000x32.0000
    140.220 content size: 12.0000x32.0000
    140.225 content size: 12.0000x32.0000
    140.230 content size: 12.0000x32.0000
    140.240 content size: 12.0000x32.0000
    140.245 content size: 12.0000x32.0000
    140.250 content size: 12.0000x32.0000
    140.255 content size: 12.0000x32.0000
    140.260 content size: 12.0000x32.0000
    140.260 content size: 12.0000x32.0000
    140.265 content size: 12.0000x32.0000
    140.275 content size: 12.0000x32.0000
    140.280 content size: 12.0000x32.0000
    140.285 content size: 12.0000x32.0000
    140.400 content size: 12.0000x32.0000
    140.405 content size: 12.0000x32.0000
    140.410 content size: 12.0000x32.0000
    140.420 content size: 12.0000x32.0000
    140.580 content size: 12.0000x12.0000
    140.590 content size: 12.0000x12.0000
    140.605 content size: 12.0000x12.0000
    140.620 AKNSKINS: (Error)

  6. #6
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: Audio Input Stream on N80

    first, assign NONE capabilities to your app, then run it in the emulator, and you'll see what capabilites are required.

    yucca

  7. #7
    Registered User
    Join Date
    May 2006
    Posts
    42

    Re: Audio Input Stream on N80

    hi yucca,

    sorry to trouble you again.
    I have tried capability none in mmp file and tried it on emulator. It works fine, i am able to start recording, and able to append recorded buffer to a file. So i think it will not reflect what capabilities is required for emulator case.

    For my case, the application jus failed to work when i install in a real device. In this case, when i click record, by right, it will go to maiscbuffercopied each time a buffer is copied until i press stop. But then in the real device case, it did not jump to maiscbuffercopied. Instead, it jumps to maiscrecordcomplete with an error KErrAccessDenied (21). Recording does not start in real device when readL is issued.

    Since emulator can work and real device cannot, i think using emulator in debugger mode cannot tell me what capability i would need. But i am not sure whether i am correct.

    Thank you

  8. #8
    Registered User
    Join Date
    May 2006
    Posts
    42

    Re: Audio Input Stream on N80

    hi yucca,

    i managed to solve my problem. Nonetheless, thanks for your advice.

    I realise one of the user grantable capability is needed to enable the phone's microphone.

    Thanks

  9. #9
    Registered User
    Join Date
    Jul 2005
    Posts
    25

    Re: Audio Input Stream on N80

    Quote Originally Posted by tkaihock
    i managed to solve my problem. Nonetheless, thanks for your advice.

    I realise one of the user grantable capability is needed to enable the phone's microphone.
    Hello tkaihock,

    I have the same problem with an E61 now. My program works fine in the emulator, but crashes on the real device. EPOCWIND.OUT does not contain any hints related to this issue.

    How did you solve the problem?

  10. #10
    Registered User
    Join Date
    May 2006
    Posts
    42

    Re: Audio Input Stream on N80

    hi,

    my program did not crash on real device, rather it cannot work the same way that it had when i try in emulator.

    And i solve this problem by declaring the capability i need in the mmp file before i import it into codewarrior. I am not sure whether there are better way of doing, but i think if there is any changes made to the mmp file, we have to reimport so that the capability will be in the program that we will install in the real device.

    You can try including this statement in your mmp files
    CAPABILITY ReadUserData WriteUserData NetworkServices LocalServices UserEnvironment

    basically these are the user grantable capabilities that we can use for sdk v3.

    hope this helps.

Similar Threads

  1. About the audio input stream example from Symbian
    By saluzi_b147 in forum Symbian
    Replies: 2
    Last Post: 2007-07-13, 04:27
  2. Audio Input Stream on N80
    By tkaihock in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2006-05-29, 07:24
  3. Half Duplex Audio Streaming
    By subhrajyotisaha in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2006-05-25, 04:39
  4. Recording an Audio Input stream using CMdaAudioInputStream
    By rastapasta in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-01-30, 23:26
  5. Audio Input Stream on 6600 records a-law?
    By siharkonnen in forum Symbian
    Replies: 0
    Last Post: 2004-02-02, 12:42

Posting Permissions

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