Results 1 to 2 of 2

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  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 10:27.

Similar Threads

  1. sd card
    By dmartino in forum Newbie
    Replies: 6
    Last Post: 19th January 2011, 22:34
  2. Qt and graphics card
    By leoalvesmachado in forum Newbie
    Replies: 2
    Last Post: 21st May 2010, 21:57
  3. Replies: 8
    Last Post: 17th October 2009, 09: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
  •  
Qt is a trademark of The Qt Company.