Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Games
»
Wav file player code
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Saving a workbook with mu...
by
wp
[
Today
at 02:44:42 pm]
Questions about TFuncSeri...
by
wp
[
Today
at 02:02:00 pm]
Hello! Anything new?
by
Nimbus
[
Today
at 01:51:43 pm]
could Ardour's YTK be use...
by
robert rozee
[
Today
at 01:37:44 pm]
How many lines is too man...
by
440bx
[
Today
at 12:51:24 pm]
[revisited] triple click
by
dbannon
[
Today
at 12:27:18 pm]
Update a table with an Au...
by
Zvoni
[
Today
at 12:22:58 pm]
[SOLVED] Set horizontal s...
by
rvk
[
Today
at 11:25:38 am]
The growth of computers
by
marcov
[
Today
at 10:12:39 am]
Configuration issues rega...
by
Martin_fr
[
Today
at 08:05:38 am]
[SOLVED] TCP/IP Question
by
valdir.marcos
[
Today
at 05:03:12 am]
Update fpexprpars
by
valdir.marcos
[
Today
at 04:52:27 am]
C/C++ code to Object Pasc...
by
Curt Carpenter
[
Today
at 03:58:28 am]
Win 11, strange position ...
by
d7_2_laz
[March 08, 2026, 11:13:04 pm]
Lazarus for Windows on aa...
by
msintle
[March 08, 2026, 09:23:01 pm]
Lazarus Bugfix Release 4....
by
Martin_fr
[March 08, 2026, 08:17:00 pm]
Debian removes FPC/Lazaru...
by
Schmitty2005
[March 08, 2026, 07:56:33 pm]
[SOLVED] ??? I don't even...
by
n7800
[March 08, 2026, 07:29:19 pm]
how to rename/save a seco...
by
valdir.marcos
[March 08, 2026, 07:25:59 pm]
How to run an external co...
by
valdir.marcos
[March 08, 2026, 07:07:31 pm]
Qt6/Wayland clipboard: pa...
by
Fred vS
[March 08, 2026, 07:02:05 pm]
NIL vs. Assign: when to u...
by
valdir.marcos
[March 08, 2026, 06:22:05 pm]
lazarus in new england
by
valdir.marcos
[March 08, 2026, 06:10:02 pm]
Text Fill (Memo)
by
Sc0li0sis
[March 08, 2026, 02:36:32 pm]
[Closed]Canvas.StretchDra...
by
jamie
[March 08, 2026, 01:57:10 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wav file player code (Read 511 times)
TBMan
Sr. Member
Posts: 350
Wav file player code
«
on:
February 22, 2025, 09:55:51 am »
I found this tonight googling around. Just pass the path to the wav file. The wav plays in the background.
Code: Pascal
[Select]
[+]
[-]
uses
windows
,
mmsystem
;
procedure
PlaySoundFile
(
filename
:
string
)
;
begin
PlaySound
(
pchar
(
filename
)
,
0
,
SND_FILENAME
+
SND_ASYNC
)
;
end
;
Logged
Barry
Newest game (clone),
Missile Commander:
https://www.youtube.com/watch?v=tgKz0cxog-k
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Games
»
Wav file player code
TinyPortal
© 2005-2018