views:

61

answers:

2

I'm working on a game that plays MP3s at various points using the Windows Media Player component and it takes a long time to load and play MP3s. Would anyone know how to decrease the load time? I've considered multi-threading but I'm not sure how I would do that or if that's even the proper direction.

+1  A: 

I'm not sure if there's a way to decrease load time necessarily but if you load it in advance so it's loaded before you need to play it, you won't have to wait.

If that's not a solution, a smaller (more compressed) file will load faster if you're willing to trade sound quality for loading speed.

chaosTechnician
Using raw (uncompressed) audio files instead of (compressed) MP3s could also help load times, at the cost of storage.
TreDubZedd
A: 

does visual basic.net use asynchronous file io? if it does it may be worth looking at ways to load synchronously, it will cause your program to wait while the file loads, but should be much quicker than it happening as a background task

Stowelly