Results 1 to 2 of 2

Thread: Embedded WAV File

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2011
    Posts
    32
    Qt products
    Qt4
    Platforms
    Windows

    Default Embedded WAV File

    Hi All,

    I have written a simple app which plays .wav files on button click. These .wav files are stored on Nokia E52 ("C:\\Data\\Sounds\\*.wav").

    I know i can embed wav files in the resource (.qrc) file. There are about 50 wav files and embedding them will make life easier in terms of deployment but in the end this app will run on no more than 5 handsets for within the office area.

    What i want to know in your view what is faster:
    1) Direct access from C:\\Data\\Sounds\\*.wav or
    2) Accessing from .qrc file
    3) Any other faster method.


    Kind Regards,
    Javed

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Embedded WAV File

    from a qrc is faster, since the binary data of the files are compiled in to the application exe - so the application does not need to open and read external files, it has all the data.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. file system embedded linux
    By danilodsp in forum General Discussion
    Replies: 0
    Last Post: 18th November 2010, 04:24
  2. How Does One Put a Conditional For Embedded Linux into a .pro file?
    By cloaked_and_coastin in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 27th July 2010, 15:48
  3. Multiple apps using Qt/Embedded+Qtopia on Embedded Linux
    By drahardja in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 17th February 2008, 21:46
  4. Replies: 3
    Last Post: 25th May 2007, 07:49

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.