🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Enrico B. Mon, 28 Apr 2003 07:38
TMediaplayer question
#16762
Author: Enrico B.
Date: Mon, 28 Apr 2003 07:38
9 lines
1356 bytes
Hi,
I am using the TMediaPlayer object in order to perform recording and playing
functions. Is there a way to programmatically control the volume level
during play function? 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? Can anybody provide
me with a piece of code?
Thanks in advance.
Henry
Re: TMediaplayer question
#16763
Author: Remy Lebeau (TeamB)
Date: Mon, 28 Apr 2003 08:13
22 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads