Reputation: 538
I wanted to know is there any classes or API for accessing the same ? I have seen lots of applications on windows phone store. click here for sample.
Upvotes: 0
Views: 330
Reputation: 23511
For Windows Phone, you can use Microsoft Media Foundation APIs. If you want to use the volume APIs in c# you need to make a reference to a C++ project that does it.
IMFMediaEngine::SetVolume method :
HRESULT SetVolume(
[in] double Volume
);
Volume [in] : The volume level. Volume is expressed as an attenuation level, where 0.0 indicates silence and 1.0 indicates full volume (no attenuation).
I think you can use a background audio agent too.
Upvotes: 1