Article View: borland.public.cppbuilder.multimedia
Article #362Retrieve audio volume of TMediaPlayer component
From: Mario Sernicola
Date: Wed, 01 Sep 2004 20:37
Date: Wed, 01 Sep 2004 20:37
23 lines
1493 bytes
1493 bytes
Hi,
To set volume of a TMediaPlayer Component I've used this code:
//----------------------------------------------------------------
MCI_DGV_SETAUDIO_PARMS p;
p.dwCallback = 0;
p.dwItem = MCI_DGV_SETAUDIO_VOLUME;
p.dwValue = volume;
p.dwOver = 0;
p.lpstrAlgorithm = NULL;
p.lpstrQuality = NULL;
mciSendCommand(MediaPLayer1->DeviceID, MCI_SETAUDIO,MCI_DGV_SETAUDIO_VALUE |
MCI_DGV_SETAUDIO_ITEM, Cardinal(&p));
How can I retrieve te value of a TMediaPlayer component to implement (for
example) a fade out effect?
Thanks
Mario Sernicola
Technical Details
Message-ID:
<413632fe@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,2d755ae3c87e9bfd,start X-Google-Attributes: gid10d0fc,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Mario Sernicola" <mariosernicola@nospam.libero.it> From: "Mario Sernicola" <mariosernicola@nospam.libero.it> Newsgroups: borland.public.cppbuilder.multimedia Subject: Retrieve audio volume of TMediaPlayer component Date: Wed, 1 Sep 2004 22:37:16 +0200 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 80.181.103.17 Message-ID: <413632fe@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1094071038 80.181.103.17 (1 Sep 2004 13:37:18 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail