×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    168

    Exclamation Import sound files to dialog

    Hi,

    Is there any way through which i can get all sound files in my dialog right now i'm implementing this fxn. Its only giving me the files residing in Digital folder but what's the procedure through which i can get all sound files in the SoundsSounds folder,,,,,,,Plz tell me how would i do this??


    void CMrCallSoundClips::ImportSound()
    {
    _LIT(KRecordedAudioPath,"c:\\Data\\Sounds\\Digital");

    TInt fileSize =0 ;
    TFileName filename,finalFilePath;

    CDir *fileList;
    (CCoeEnv::Static()->FsSession()).GetDir(KRecordedAudioPath,KEntryAttNormal,ESortBySize,fileList);

    TInt i;
    TInt TotalFiles = fileList->Count();

    for(i=0; i<TotalFiles; i++)
    {
    filename.Copy((*fileList)[i].iName);
    finalFilePath.Copy(KRecordedAudioPath);
    finalFilePath.Append(filename);

    TBuf<512> ListStringbuffer;
    TBuf<126> KFileName;

    KFileName.Copy(filename);

    CreateListBoxItemL( ListStringbuffer,EListBoxMrCallList_iconIndex,KFileName) ;
    AddListBoxItemL( iSoundClips, ListStringbuffer );
    }
    delete fileList;
    }

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

    Re: Import sound files to dialog

    You either should read each folder separately, or just use MGFetch API to get all media files according to their type from normal gallery.

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    168

    Re: Import sound files to dialog

    Is there is any way i can set MGFetch to my current path?

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

    Re: Import sound files to dialog

    Easiest and fastest way to check out would be to read the API documentation for the API, anyway, AFAIK it is not possible.

Similar Threads

  1. Launching a dialog when the application starts
    By Uriah Eisenstein in forum Symbian User Interface
    Replies: 10
    Last Post: 2009-03-31, 09:06
  2. How to Bundle sound files with Application
    By ravey72 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-04-19, 12:49
  3. Sound Files Encryption/Decryption
    By say2paul in forum Symbian
    Replies: 0
    Last Post: 2006-05-19, 08:23

Posting Permissions

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