Article View: borland.public.cppbuilder.nativeapi
Article #12768Re: Mute sound api
From: Rodolfo Frino
Date: Mon, 17 Nov 2003 13:05
Date: Mon, 17 Nov 2003 13:05
23 lines
1455 bytes
1455 bytes
You can use something like this (untested)
char command[128];
wsprintf(command, "setaudio %s %s %s",
MediaPlayer1->FileName.c_str(),
"off", // To set audio on replace "off" by "on"
"wait");
mciSendString(command, NULL, 0, NULL);
Rodolfo
"Martin C" <martinc@aol.com> wrote in message
news:3fb2d747@newsgroups.borland.com...
> Hi all,
>
> Is there any api function I can use to mute/ un-mute the windows sound..
>
> thanks in advance
>
>
Technical Details
Message-ID:
<3fb8c797@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fb2d747@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b43efb3e43c5ee4f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-17 05:09:14 PST From: "Rodolfo Frino" <MenInBlack@nowhere.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fb2d747@newsgroups.borland.com> Subject: Re: Mute sound api Date: Tue, 18 Nov 2003 00:05:59 +1100 Lines: 25 Organization: Men In Black X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 203.206.21.242 Message-ID: <3fb8c797@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069074327 203.206.21.242 (17 Nov 2003 05:05:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail