<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://wiki.techtic.pro/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.techtic.pro/feed.php">
        <title>TechTIC prog:lazarus:cas:sons</title>
        <description></description>
        <link>http://wiki.techtic.pro/</link>
        <image rdf:resource="http://wiki.techtic.pro/lib/exe/fetch.php?media=favicon.ico" />
       <dc:date>2026-05-12T20:36:14+0200</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.techtic.pro/doku.php?id=prog:lazarus:cas:sons:sons&amp;rev=1684924010&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.techtic.pro/lib/exe/fetch.php?media=favicon.ico">
        <title>TechTIC</title>
        <link>http://wiki.techtic.pro/</link>
        <url>http://wiki.techtic.pro/lib/exe/fetch.php?media=favicon.ico</url>
    </image>
    <item rdf:about="http://wiki.techtic.pro/doku.php?id=prog:lazarus:cas:sons:sons&amp;rev=1684924010&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-05-24T12:26:50+0200</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Les Sons dans Lazarus</title>
        <link>http://wiki.techtic.pro/doku.php?id=prog:lazarus:cas:sons:sons&amp;rev=1684924010&amp;do=diff</link>
        <description>Les Sons dans Lazarus

MMSystem


uses MMSystem;
...

sndPlaySound('C:\sounds\test.wav',0,snd_Async or snd_NoDefault or Snd_Loop););



1. En créant un fichier ressource (monfichier.res).

{$R monfichier.RES} // Ton fichier ressource

Sons1 WAV &quot;Data.wav&quot;
Sons2 RCDATA &quot;bronze.mp3&quot;

Var
dirdir : string;

procedure TFmMain.BplayClick(Sender: TObject);
var
  hres: THandle;
  pres: PChar;
begin
 // cherche le son représentant Data.wav soit sons1
 
  hres := FindResource(hInstance, pchar('Sons1'), 'w…</description>
    </item>
</rdf:RDF>
