-
I am afraid that you are right..I have tried all the tricks that I can think of to make sndplaysound load a wav greater than 2MB directly from resource file instead of loading to disk and playing it from the hard drive. I can't make VB do what it will not do...It was just puzzling to me that it will play a 2MB wav from the hard drive and not from a resource file. Thx...
-
Please ignore this thread..I ran this routine on a win95 machine and it loaded an played 5MB wavs with no problem...This was initially ran on a Windows 2000 dell machine...I will conduct further tests...
-
Problem solved ..I feel like an idiot...For files greater than 2MB, the SND_ASYNC flag was needed on the Windows 2000 machine if playing from my dll resource file.
Large waves played without the flag with no problem from a resource file on Windows 95 and 98. I don't know why ...