Click here to Skip to main content
15,906,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am Creating a Video Player using Interop.QuartzTypeLib dll.

In that How to increase and decrease volume.

IBasicAudio is there but how to use that to change the volume.

If any one knows tell me.
Posted
Updated 4-Nov-11 1:55am
v2
Comments
BobJanova 4-Nov-11 8:05am    
You should probably ask this on the forum of the software you are using.

1 solution

Hello,

Daniel Strigl wrote an article about it back in 2003...
DirectShow MediaPlayer in C#[^]

It will probably need a bit of updating, but otherwise it answers your question.

As reported by ssyuvaraja the article does not tell you how to adjust the sound. Thankfully this is really easy.

Look at the code of the article and use this object:
m_objBasicAudio = m_objFilterGraph as IBasicAudio;


And to modify the sound:
m_objBasicAudio.Volume = volume; // from -10 to 0


More details can be found on MSDN:
http://msdn.microsoft.com/en-us/site/ms782294#controllingaudio[^]

Valery.
 
Share this answer
 
v2
Comments
ssyuvaraja 4-Nov-11 9:08am    
How to increase the volume. There is no options like increasing the volume.
Valery Possoz 4-Nov-11 9:57am    
You are right, I have updated my answer, thanks for spotting that! :)
ssyuvaraja 5-Nov-11 2:54am    
Thank you. Its working.
ssyuvaraja 9-Nov-11 23:23pm    
How to change the Cursor when its inside the player. I Try'd the Cursor change its worked outside that player. But default cursor only showing inside that player.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900