128 Voices in Windows WINMM.DLL - Printable Version +- Qbasicnews.com (http://qbasicnews.com/newforum) +-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html) +--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html) +---- Forum: FB Projects (http://qbasicnews.com/newforum/forum-16.html) +---- Thread: 128 Voices in Windows WINMM.DLL (/thread-6234.html) |
128 Voices in Windows WINMM.DLL - GordonSweet - 02-25-2005 Until some clever one can come up with a way of accessing the 128 Voices in Windows WINMM.DLL using FB here is a simple program produced with BBC BASIC for Windows. http://sionet.mysite.wanadoo-members.co.uk/voice.zip Just unzip and click in VOICE.EXE which will display instructions and a list of the voices. The voices can be invoked from a BAT file etc such as VOICE note(20-110),voice(1-128),duration(10-1000) Try creating a .bat file using Notepad to play a Tinker Bell as VOICE 90,113,1000 Or compile a QB program with just shell "VOICE 90,113,1000" The only problem is the screen going blank such as when compiling with FB. Gordon :rotfl: 128 Voices in Windows WINMM.DLL - ShadowWolf - 02-25-2005 being bored i want and looked up some winmm stuff here some code to play .wav files note you need lib libwinmm.a to use. you can get this from your friendly MingW package. Code: #define SND_ASYNC &H1 128 Voices in Windows WINMM.DLL - aetherfox - 02-25-2005 This is in the article I put in QBExpress latest issue 128 Voices in Windows WINMM.DLL - ShadowWolf - 02-25-2005 oh cool found a good site outside the msdn for function prototype's for winmm http://www.webtropy.com/articles/art9-2.asp?lib=winmm.dll 128 Voices in Windows WINMM.DLL - GordonSweet - 02-25-2005 Thanks for your help, I am pretty ignorant when it comes to API calls etc, and a bit late to learn at the age of 71. I assume we could play MP3, WMA, MPEG3 etc using the WINMM.DLL as is done in other languages. Gordon 128 Voices in Windows WINMM.DLL - ShadowWolf - 02-26-2005 na never to late to learn anything just think of API as Function/Sub's that exist outside your program. |