Article View: borland.public.cppbuilder.nativeapi
Article #16763Re: TMediaplayer question
From: Remy Lebeau (TeamB)
Date: Mon, 28 Apr 2003 08:13
Date: Mon, 28 Apr 2003 08:13
22 lines
1799 bytes
1799 bytes
"Enrico B." <eangelo@libero.it> wrote in message news:3eacd739@newsgroups.borland.com... > Is there a way to programmatically control the volume level > during play function? The simpliest way is the waveOutSetVolume() function, but that is a general purpose volume control for the entire system, not specific playbacks. > In addition to that I need to modify the recording parameters, > in particular I need to change the sampling speed from default > to 8000Hz, 8 Bit; is there a simple way to achieve that? What you ask for cannot be done with TMediaPlayer. You would have to drop down to a lower-level and use the Multimedia API directly, handling the recording/playback buffers and codec setups and such yourself. There is a whole section in the Win32 API documentation on working with multimedia, you might consider having a look at it. Gambit
Technical Details
Message-ID:
<3eace240$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eacd739@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,35b314fcd101d54c X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-28 01:21:25 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eacd739@newsgroups.borland.com> Subject: Re: TMediaplayer question Date: Mon, 28 Apr 2003 01:13:05 -0700 Lines: 24 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: 207.175.226.26 Message-ID: <3eace240$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051517504 207.175.226.26 (28 Apr 2003 01:11:44 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail