Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to play *.wav file through the pc speaker?!
Message
From
30/11/1999 10:29:30
 
 
To
30/11/1999 10:17:19
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00296831
Message ID:
00296857
Views:
22
>really!? Oooooo...
>then how about if i change to lower version (like foxpro 2.6....)
>can do that?!

I don't know if BIOS-level services will actually permit you to access the speaker under Win9x/WinNT; FPW uses the currently defined sound device, as does VFP.

While it will not be difficult to write code to control for the DOS platform (for FPDOS, you can create a .BIN file with an assembler (essentially, it's loaded into memory as machine code) or using the Library Construction Kit, write a .PLB in the correct flavor of C (Watcom), a .PLB to do it) it's probably not a smart thing to do, since BIOS-level access is going to be very timing dependent, and in a Windows environment you are likely to not have adequate control over when your application is running. And then realize that the DOS platform has no understanding of the .WAV file, so you'll have to write something to decode the .WAV file and control the output yourself.

Is there some reason not to use the default Windows sound device?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform