Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,880 of 10,840    |
|    Brad Thomas to All    |
|    Re: Adding a WAV file as a resource in V    |
|    30 Jan 06 22:46:48    |
      From: bradzo0647@bigpond.com              Tom              Since a WAV file is a bitstream (?) you could just split up your WAV into       64k chunks, and then grab the chunks from the resource file, binary writing       them       one after the other into a temporary file, and use sndPlaySound to play that       file.              For splitting WAVs, have a look at http://www.009soft.com/produc       s/wav-splitter.htm       as an example.                     > "The data that LoadResData loads from the resource file can be up to 64K."       >       > Any way to bypass this limit?               > The obvious immediate solution is to put the WAV       > file I want to play in the directory the EXE is in and use the media player       > in VB.              Yes, you could do that too. May be easier. :)              Cheers              Brad              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca