Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

waveOutSetVolume() problem (in WinXP?)


waveOutSetVolume() problem (in WinXP?)

Postby mickey » Aug 24, 2006 @ 12:23pm

In our game audio "middleware", we have one WaveOut device handle, opened with waveOutOpen( WAVE_MAPPER, ... ), per audio channel.
To set sound volume on a single channel (without touching the others), waveOutSetVolume( hWaveOut, volume ) is called on that channel's device handle.
On WinCE, this works perfectly. On desktop, the same code changes volume on ALL channels at once, despite MSDN stating that
If a device identifier is used, then the result of the waveOutSetVolume call applies to all instances of the device. If a device handle is used, then the result applies only to the instance of the device referenced by the device handle.

Since I'm quite sure I pass different device HANDLES, I'm a bit confused :roll: . I've tried all handle / id / whatever combinations I could imagine.

Any ideas? Please, don't say "DirectSound" :wink:
mickey
pm Member
 
Posts: 11
Joined: Jul 22, 2004 @ 10:47am


Return to Windows Mobile


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron