Results 1 to 2 of 2

Thread: How to set path to memory card of the mobile?

  1. #1
    Join Date
    Nov 2011
    Posts
    45
    Qt products
    Qt4
    Platforms
    Symbian S60

    Post How to set path to memory card of the mobile?

    Hi All,
    I am using latest qt version 4.7,where i developed an application on Audio Recording. I need to set the path to memory card(ie,mass memory),I have seen links based on carbide link :http://www.developer.nokia.com/Commu..._manufacturers
    But could not find any solution for this latest version.

    Can anyone help me out in finding this!!

    This is what i tried.I used two methods but i am clueless…. But the audio file gets stored in simulator ,,but not in desired memory card location!!!

    AudioBuffer::AudioBuffer()
    {
    audioSource = new QAudioCaptureSource();
    capture = new QMediaRecorder(audioSource);

    QAudioEncoderSettings audioSettings;
    audioSettings.setCodec("audio/vorbis");
    audioSettings.setQuality(QtMultimediaKit::HighQual ity);
    capture->setEncodingSettings(audioSettings);
    capture->setOutputLocation(QUrl::fromLocalFile("test.wav") );

    FileName path = PathInfo::MemoryCardRootPath();
    path.Append( PathInfo::SoundsPath() );

    // QFile file;
    // QDir::setCurrent("/tmp");
    // file.setFileName("test.wav");
    // QDir::setCurrent("/home");
    // file.open(QIODevice::ReadOnly);
    }

    I am using Symbian platform(Qt-Quick)

    Regards,
    Harish.
    Last edited by harish; 20th February 2012 at 09:27.

  2. #2
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: How to set path to memory card of the mobile?

    I don't know anything about sound recording, but in your code, after you set the variable path, you do nothing with it.

Similar Threads

  1. sd card
    By dmartino in forum Newbie
    Replies: 6
    Last Post: 19th January 2011, 21:34
  2. Qt and graphics card
    By leoalvesmachado in forum Newbie
    Replies: 2
    Last Post: 21st May 2010, 20:57
  3. Replies: 8
    Last Post: 17th October 2009, 08:10

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.