Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: Need to get Sound level from Media Player

HTVi
TV Discussion Newsgroups

Need to get Sound level from Media Player
Sean 5/18/2007 10:43:02 PM
I have a C# program that wraps the media player component. I need to be able
to get the sound level (note: Not volume level) of the current audio stream.
Any way to get this from media player?

Sean
Re: Need to get Sound level from Media Player
"Neil Smith [MVP Digital Media]" <neil[ at ]nospam.com> 5/20/2007 3:47:18 PM
On Fri, 18 May 2007 15:43:02 -0700, Sean
<Sean[ at ]discussions.microsoft.com> wrote:

[Quoted Text]
>I have a C# program that wraps the media player component. I need to be able
>to get the sound level (note: Not volume level) of the current audio stream.
>Any way to get this from media player?

I don't think it exports that value anywhere you can access it, no.

Cheers - Neil
------------------------------------------------
Digital Media MVP : 2004-2007
http://mvp.support.microsoft.com/mvpfaqs
Re: Need to get Sound level from Media Player
"Mike Lowery" <selfspam[ at ]mouse-potato.com> 5/21/2007 5:18:46 PM

"Neil Smith [MVP Digital Media]" <neil[ at ]nospam.com> wrote in message
news:8sr053pbtun96p0csho2spblf8mo9anfbu[ at ]4ax.com...
[Quoted Text]
> On Fri, 18 May 2007 15:43:02 -0700, Sean
> <Sean[ at ]discussions.microsoft.com> wrote:
>
>>I have a C# program that wraps the media player component. I need to be able
>>to get the sound level (note: Not volume level) of the current audio stream.
>>Any way to get this from media player?
>
> I don't think it exports that value anywhere you can access it, no.

I've seen it done using a plug-in written in C++.


Re: Need to get Sound level from Media Player
Sean 5/22/2007 5:54:02 PM
Thanks for the response Neil, maybe if I explain what I am trying to do you
may know of a way. I have an audio stream that is coming off of media
encoder that is being listened to by a program I wrote in C#. 99% of the
time the audio is just silence other then an an extremely quite hum (due to
the fact it is an analog device). I want to be able to alert the user of the
app when real audio (not the background hum) is coming through the audio
stream. I assumed there would be a way to determine when the sound volume
is at a certain level. People who make plugins for visualizations must have
access to this value somehow. I would just hook in to the sound card, but if
the person also had music playing or email notifications the app would not be
able to differentiate.

Any insight you might have would be greatly appreciated.

sean

"Neil Smith [MVP Digital Media]" wrote:

[Quoted Text]
> On Fri, 18 May 2007 15:43:02 -0700, Sean
> <Sean[ at ]discussions.microsoft.com> wrote:
>
> >I have a C# program that wraps the media player component. I need to be able
> >to get the sound level (note: Not volume level) of the current audio stream.
> >Any way to get this from media player?
>
> I don't think it exports that value anywhere you can access it, no.
>
> Cheers - Neil
> ------------------------------------------------
> Digital Media MVP : 2004-2007
> http://mvp.support.microsoft.com/mvpfaqs
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen