Resources and performance

I have several .wav files in my project (about 15). I would like to understand if putting them in the project's reource file can speedup their usage or if it is better to continue to keep them as just .wav files in a subdirectory.

Many thanks in advance for your answer




Answer this question

Resources and performance

  • cbpd86

    Probably it won’t. Besides, what exactly "speedup means for wave files, twice the playback speed

    In any case you can try it and see if it’s any faster.



  • chionhhm

    Ilya Tumanov wrote:

    Besides, what exactly "speedup means for wave files, twice the playback speed

    In any case you can try it and see if it’s any faster.

    LOL, sorry for my bad English

    So it seems it is the same speed for loading a file from a resource file or from a directory.

    Thanks for answering



  • Donatella80

    Thank you very much for this answer.

    I've got about 15 small .wav files (about 10-15 KB each.)

    I'll put them in a resource file.



  • JawKnee

    Loading a file from filesystem will be very slightly faster. Keeping them in a resource makes them more manageable. Of course if we are talking about several megabytes combined worth of audio, you should not put them in a resource

  • Resources and performance