Volume Control

Hi !

i am looking for a possibility to set the MasterVolume control of the
windows mixer to a defined level.
Who knows how can i solve this problem ?
Thanks.

Alex
-------------- next part --------------
A non-text attachment was scrubbed…
Name: a.moeltner.vcf
Type: text/x-vcard
Size: 288 bytes
Desc: Visitenkarte f?r Alexander Moeltner
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000418/f57ec0e4/attachment.vcf

Alexander Moeltner <a.moeltner at hno.uni-wuerzburg.de> schrieb am 18 Apr 2000:

Hi !

i am looking for a possibility to set the MasterVolume control of the
windows mixer to a defined level.
Who knows how can i solve this problem ?

I don’t know, but are you absolutely definitely sure you want to
touch the MasterVolume control? IMAO only a mixer application (are you
writing one?) should touch that. You could easily blow your users
speakers (and ears) to oblivion.

  • Andreas–
    Check out my 3D lightcycle game: http://www.gltron.org
    More than 60’000 Downloads of the latest version (0.53)

Driver volume control definitely needs to be added to SDL as
SDL already does volume mixing by itself - two simple
[GS]etVolume functions should suffice.

See my post about “SDL audio performance” some days
ago how to set the WaveOut volume under Win32 - basically
it’s a waveOutSetVolume(WAVE_MAPPER, 0xffffffff) call.

MarkusOn 18-Apr-2000 Alexander Moeltner wrote:

Hi !

i am looking for a possibility to set the MasterVolume control of the
windows mixer to a defined level.
Who knows how can i solve this problem ?
Thanks.

Alex

---- Markus F.X.J. Oberhumer @ http://oberhumer.tsx.org ----
---- 5E CB 5C 85 DE AF 9E BF E9 DA 7E 6A 39 F8 CC 67 ----

                  3 WARPS TO URANUS

Doesn’t this belong in OpenAL instead of SDL. SDL seems like it would
support OpenAL anyway so it wouldn’t be an issue…

No sense changing the API twice y’know…

DaveOn Tue, 18 Apr 2000, Markus F.X.J. Oberhumer wrote:

Driver volume control definitely needs to be added to SDL as
SDL already does volume mixing by itself - two simple
[GS]etVolume functions should suffice.

See my post about “SDL audio performance” some days
ago how to set the WaveOut volume under Win32 - basically
it’s a waveOutSetVolume(WAVE_MAPPER, 0xffffffff) call.

Markus

On 18-Apr-2000 Alexander Moeltner wrote:

Hi !

i am looking for a possibility to set the MasterVolume control of the
windows mixer to a defined level.
Who knows how can i solve this problem ?
Thanks.

Alex

---- Markus F.X.J. Oberhumer @ http://oberhumer.tsx.org ----
---- 5E CB 5C 85 DE AF 9E BF E9 DA 7E 6A 39 F8 CC 67 ----

                  3 WARPS TO URANUS

Hello Markus !

with the “waveOutSetVolume” command, only the wave output is adjustable.

The SetVolume command doesn?t work.
Need i a sdk or direct x library ?
Thanks.

alex
-------------- next part --------------
A non-text attachment was scrubbed…
Name: a.moeltner.vcf
Type: text/x-vcard
Size: 288 bytes
Desc: Visitenkarte f?r Alexander Moeltner
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000418/a304add7/attachment.vcf

Just throw in the waveOutSetVolume call before
initializing SDL - its located in WINMM.DLL.
See the souce code in my other mail for what
it does.

MarkusOn 18-Apr-2000 Alexander Moeltner wrote:

Hello Markus !

with the “waveOutSetVolume” command, only the wave output is adjustable.

The SetVolume command doesn?t work.
Need i a sdk or direct x library ?

---- Markus F.X.J. Oberhumer @ http://oberhumer.tsx.org ----
---- 5E CB 5C 85 DE AF 9E BF E9 DA 7E 6A 39 F8 CC 67 ----

                  3 WARPS TO URANUS

Real world has shown that I need a patched and rebuilt SDL,
an enhanced SDL_mixer and some additional driver volume
control for my PySol sound server.

I’m happy to share all my fixes and enhancements with you, but
it’s up to Sam to decide what to include into the core components.
I know what I need :wink:

MarkusOn 18-Apr-2000 Dave wrote:

Doesn’t this belong in OpenAL instead of SDL. SDL seems like it would
support OpenAL anyway so it wouldn’t be an issue…

No sense changing the API twice y’know…

Dave

On Tue, 18 Apr 2000, Markus F.X.J. Oberhumer wrote:

Driver volume control definitely needs to be added to SDL as
SDL already does volume mixing by itself - two simple
[GS]etVolume functions should suffice.

See my post about “SDL audio performance” some days
ago how to set the WaveOut volume under Win32 - basically
it’s a waveOutSetVolume(WAVE_MAPPER, 0xffffffff) call.

Markus

On 18-Apr-2000 Alexander Moeltner wrote:

Hi !

i am looking for a possibility to set the MasterVolume control of the
windows mixer to a defined level.
Who knows how can i solve this problem ?
Thanks.

Alex

---- Markus F.X.J. Oberhumer @ http://oberhumer.tsx.org ----
---- 5E CB 5C 85 DE AF 9E BF E9 DA 7E 6A 39 F8 CC 67 ----

                  3 WARPS TO URANUS

---- Markus F.X.J. Oberhumer @ http://oberhumer.tsx.org ----
---- 5E CB 5C 85 DE AF 9E BF E9 DA 7E 6A 39 F8 CC 67 ----

                  3 WARPS TO URANUS

Why on earth would you want to do that? Poeple don’t want their master
volume touched.

Ever had someone walk into your room and turn down your hifi? Annoying.On Tue, 18 Apr 2000, Alexander Moeltner wrote:

Hi !

i am looking for a possibility to set the MasterVolume control of the
windows mixer to a defined level.
Who knows how can i solve this problem ?
Thanks.

Alex

Long live the confused,
Akawaka.

Bother! said PoohI’M Brian of Nazareth!

Sorry Martin,

but is your statement the ANSWER of my question ?
I need the volume adjust to calibrate the loudspeaker.

alex
-------------- next part --------------
A non-text attachment was scrubbed…
Name: a.moeltner.vcf
Type: text/x-vcard
Size: 288 bytes
Desc: Visitenkarte f?r Alexander Moeltner
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000419/e4ca55d4/attachment.vcf

But you have to take into account what the sound card is connected to. You
can’t just go messing with a users master volume. I’m my case the voltage
of the line out on is too high for my amp.
Plain and simple: Adjusting the master volume is DANGEROUS.On Wed, 19 Apr 2000, Alexander Moeltner wrote:

Sorry Martin,

but is your statement the ANSWER of my question ?
I need the volume adjust to calibrate the loudspeaker.

alex

Long live the confused,
Akawaka.

Bother! said Pooh, as he fell into the nitric acid bath.

Hello Martin,

thanks for your tip.
but i know that is dangerous.
i will insert my program in a well known enviroment (active
loudspeker).

alex
-------------- next part --------------
A non-text attachment was scrubbed…
Name: a.moeltner.vcf
Type: text/x-vcard
Size: 288 bytes
Desc: Visitenkarte f?r Alexander Moeltner
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20000419/eb0f478f/attachment.vcf

I’m sorry. I’m not against your own personal use of the master volume, I’m
just against adding this to SDL_mixer.On Wed, 19 Apr 2000, Alexander Moeltner wrote:

Hello Martin,

thanks for your tip.
but i know that is dangerous.
i will insert my program in a well known enviroment (active
loudspeker).

alex

Long live the confused,
Akawaka.

Bother, said Pooh as he drank Roo’s blood.