×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    48

    include .wav in .sis

    hi!
    I'm developing a symbian application that uses some wav sound files. Is it possible to include this sounds into the sis files in some way? I mean, i don´t want the users of mi application have to download de sis file and then copy some wav files in a especified directory. I´m using carbide 2.0.

    Thanks!

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: include .wav in .sis

    Try opening your .pkg file then, the "some path on the PC\some file"-"some path on the device\some file" lines do exactly what you want.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    48

    Re: include .wav in .sis

    thanks i get it! Now i want my application to play the wav file, so I modify the .pkg file to store it in :\private\10003a3f\import\apps\play.wav (the same place where images are placed), but when I try to play it the BaflUtils::FileExists doesn´t find the file.

    If i try to store it in :\system\play.wav BaflUtils::FileExists find the file but the application is no able to play it.

    this is the part of the code where i try to play the file

    Code:
    User::LeaveIfError(fsSession.Connect());
    		_LIT(contextcalllog_filen, "C:\\private\\10003a3f\\import\\apps\\play.wav");
    
    		if (BaflUtils::FileExists(fsSession,contextcalllog_filen)){
    		      iSoundPlayer=CPlayerUtility::NewL(_L("C:\\private\\10003a3f\\import\\apps\\play.wav"));
    
    		        	iSoundPlayer->Play();
    
    		}else{ 
    		AppUi()->HandleCommandL( EEikCmdExit );
    		}

    thanks!!!

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: include .wav in .sis

    \private\10003a3f is the private folder of the Menu application, you can not access it, and generally it is a bad location for anything else than _reg.rsc files. Deploy your .wav file to c:\resource for example.

  5. #5
    Registered User
    Join Date
    Mar 2009
    Posts
    48

    Re: include .wav in .sis

    I deploy it in C:\resource\ but it doesn´t work, BaflUtils::FileExists finds the file but i can´t hear nothing. Another strange thing is that if i put this line

    iPlayUtility->SetVolume(iPlayUtility->MaxVolume());
    before

    iPlayUtility->Play();
    I get panic MMFAudioClient 4 and I don´t find any information about it, any ideas?

    Thanks for your help!

    PS: I have self signed my application, do I need an extra capability to play audio files?

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: include .wav in .sis

    I am not sure about what CPlayerUtility actually is, however if it is just a wrapper to CMdaAudioPlayerUtility, note that CMda* classes open and prepare audio data asynchronously. You should not use the given player object until it notifies you about that it is done with the preparations. In case of CMdaAudioPlayerUtility that would happen via invoking your MapcInitComplete method, and that is the earliest location where you can invoke Play.

  7. #7
    Registered User
    Join Date
    Mar 2009
    Posts
    48

    Re: include .wav in .sis

    Now it works!

    Thank you very much!!

Similar Threads

  1. Application Flow Problem...!
    By damodharan in forum Symbian
    Replies: 2
    Last Post: 2008-11-19, 10:24
  2. Problem in View Architecture .please help
    By Abhishek_karmakar in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-09-24, 14:13
  3. Retrieve data from server-side asp
    By puh_sk8@hotmail.com in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-11-20, 17:19
  4. Problem to compile series60 3rd
    By asmobease in forum Symbian
    Replies: 9
    Last Post: 2006-09-04, 15:15
  5. open a view by clicking the listbox item
    By kirtij in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2006-02-24, 15:55

Posting Permissions

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