pc speaker 
Author Message
 pc speaker

Can you use a Windows DLL for play a .WAV file.

This code example use this DLL.

/* e-dllex2.p */

DEFINE VARIABLE wave-name AS CHARACTER
 INITIAL ? NO-UNDO.
DEFINE VARIABLE play-status AS INTEGER.

SYSTEM-DIALOG GET-FILE wave-name
 TITLE "Choose the Sound"
 FILTERS "Wave Files (*.wav)" "*.wav"
 MUST-EXIST USE-FILENAME.

RUN sndPlaySoundA (INPUT wave-name, INPUT 2, OUTPUT play-status).

PROCEDURE sndPlaySoundA EXTERNAL "winmm.dll":
 DEFINE INPUT PARAMETER ic AS CHARACTER.
 DEFINE INPUT PARAMETER ish AS LONG.
 DEFINE RETURN PARAMETER osh AS LONG.
END PROCEDURE.

MARCOS ALVES


    Is it possible to make music with the PC speaker in Progress?

    Eugene



Fri, 13 Apr 2001 03:00:00 GMT
 
 [ 1 post ] 

 Relevant Pages 

1. MessageBeep( -1 ) to sound the pc speaker

2. Help me stop the PC speaker please!

3. pc speaker

4. pc speaker

5. WAV files to PC speaker and cursor

6. Delphi Multimedia & PC speaker

7. How to work PC speaker via Delphi?

8. data transfer/sync basics between pc and pocket pc

9. ipaq pocket pc VS pocket pc emulation

10. desktop pc vs server pc

11. 24405-IA-Eddyville-LAN/WAN-PC-Communication Skills-ORACLE-Client/Server-PC-Techn


 
Powered by phpBB® Forum Software