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
Feature suggestion - repe...
by
paweld
[
Today
at 07:38:10 am]
is this code correct?
by
ginoo
[
Today
at 07:34:45 am]
Linking a PortAudio stati...
by
Thaddy
[
Today
at 07:33:53 am]
search via TSQLQuery
by
paweld
[
Today
at 07:28:41 am]
Temp file CGI00000.TMP
by
egsuh
[
Today
at 07:19:24 am]
Nothing but chaotic attem...
by
dbannon
[
Today
at 06:30:20 am]
Amigo programming languag...
by
paxscript
[
Today
at 05:49:02 am]
Anubis's website security...
by
ALLIGATOR
[
Today
at 05:34:21 am]
Klondike solitaire Part 2
by
valdir.marcos
[
Today
at 03:50:07 am]
PopupMenu on dock menu
by
systemgvp
[
Today
at 03:35:31 am]
Creation of LAMW [NoGUI] ...
by
neuro
[
Today
at 01:06:41 am]
wildcard utilities list
by
mas steindorff
[
Today
at 12:22:21 am]
TShellTreeView TopItem
by
wp
[May 16, 2026, 11:43:13 pm]
Can I enter MySQL prompt ...
by
tooknox
[May 16, 2026, 10:05:08 pm]
FPC Unleashed (inline var...
by
440bx
[May 16, 2026, 09:30:19 pm]
Artificial Intelligence a...
by
LeP
[May 16, 2026, 06:15:13 pm]
P.I.S.S. a PlugIn-framewo...
by
cdbc
[May 16, 2026, 04:39:24 pm]
Read/Parse PDB file to ge...
by
LeP
[May 16, 2026, 04:12:58 pm]
Dark Theme
by
NickyTi
[May 16, 2026, 04:11:34 pm]
StringGrid: which is "cur...
by
jamie
[May 16, 2026, 04:10:34 pm]
Can /my/ AI help me with ...
by
microxa
[May 16, 2026, 03:51:48 pm]
Database files reader. Di...
by
valdir.marcos
[May 16, 2026, 02:33:27 pm]
AdvancedHTTPServer: A Go-...
by
valdir.marcos
[May 16, 2026, 02:32:51 pm]
Pls support Double Comman...
by
Tomxe
[May 16, 2026, 11:52:40 am]
TLazSerial : serial port ...
by
LeP
[May 16, 2026, 11:13:15 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wav file player code (Read 574 times)
TBMan
Sr. Member
Posts: 353
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