Hi,<div><br></div><div>I've been trying to get WASAPI audio output working for our app as Directsound output was very glitchy post the new audio stack.</div><div><br></div><div>All seems to work great with WASAPI however I need to able to set the volume level independently for individual audio sessions / streams for crossfading however I'm having problems controlling the volume levels of a shared mode audio session / stream. specifically, </div>

<div><br></div><div>ISimpleAudioVolume::SetMasterVolume </div><div><br></div><div><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/dd316537(v=vs.85).aspx">http://msdn.microsoft.com/en-us/library/windows/desktop/dd316537(v=vs.85).aspx</a></div>

<div><br></div><div>Doesn't seem to work under Wine i.e.</div><div><br></div><div><div>HRESULT hr;</div><div><div>hr=audioClient_->GetService(IID_ISimpleAudioVolume,(void**)&simpleAudioVolume_);</div><div>if (SUCCESS(hr))</div>

<div><span class="Apple-tab-span" style="white-space:pre">      </span>hr=simpleAudioVolume_->SetMasterVolume(0.1,NULL);</div></div><div><br></div><div>returns success but does not change the volume level though interestingly</div>

<div><br></div><div><div>HRESULT hr;</div><div><div>hr=audioClient_->GetService(IID_ISimpleAudioVolume,(void**)&simpleAudioVolume_);</div><div>if (SUCCESS(hr))</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>hr=simpleAudioVolume_->SetMute(TRUE,NULL);</div>

</div></div><div><br></div><div>does work and mute the volume.</div><div><br></div><div>I've also tried usingsthe IAudioStreamVolume interface to control the volume again to no avail.</div><div><br></div><div>Does anyone have any experience of these interfaces or know equivalent interfaces to use instead working I've tested on :</div>

<div><br></div><div>Ubuntu 10.04, 11.10</div><div>Wine 1.4 , 1.5 , 1.5.2</div><div>PulseAudio  0.9.21 , 1.0 , no pulse audio</div><div><br></div><div>(and windows 7 where the code works fine)</div><div><br></div><div><br>

</div></div><div>Thanks,</div><div><br></div><div>Adam</div>