javierdlr wrote:LyleHaze wrote:
http://jabirulo.site90.com/temp/Mixer_BETA5.7z
...
If you'd like the starting positions to match the soundcard defaults, set main volume and record volume to maximum, and set record gain to zero.
Having the record gain at +40dB would be very bad for most sound sources.
Also, a minor detail.. the first two sliders are now record gain and record volume.
"monitor" has been moved out to a separate program so that AHI doesn't mess with it.
Ok, so I set this defaults, using the "names" I see on Mixer:
In Gain=0.0dB
Input=22.5dB
Master=0.0dB
Problem seems to be when button MUTE=on sound doesn't come back when MUTE=off?
Sorry, still don't get waht you mean with: "..the first two sliders are now record gain and record volume.
"monitor" has been moved out to a separate program so that AHI doesn't mess with it"
To a non musical/audio/sound guy like me what should Mixer string say then?
Mixer only has MONITOR or PLAYBACK for faderstrings.
"Monitor In Gain" -> ???
"Monitor Input" -> ???
"Playback Master" -> ???
For the levels, yes, sounds right.. both volumes start at MAX, Gain starts at MIN..
regarding MUTE.. if I remember from the last time I saw the mixer code..
The structure for the Audio card includes LocalProp.LastVal, which holds the last non-mute volume setting.
Turning mute OFF restores that value to volume registers..
The format for those registers is 0x00 to 0x7f as the volume range, and the high bit 0x80 is the MUTE control.
Assuming this hasn't changed since the code I saw a while back, just make sure that any value stored in LocalProp.LastVal
has the high bit reset.. i.e. LocalProp.LastVal = CurrentVolume & 0x7f.
That way you'll never store a MUTE for the last volume setting, and restoring from that register should give the last non-mute volume used.
About the labels, I assumed that they were editable.. but since you asked why..
There are two completely separate input sections..
The one controlled by AHI and Mixer is used only for recording.. that is, recording audio through AHI into digital format.
The second one is for listening to an input.. Useful for playing music from an MP3 player or an older CDROM drive with analog outputs,
or maybe to add sound from a second computer or synth so they can share speakers, or even for Karaoke. This second channel is called "Monitor",
because it monitors an audio signal without recording it.
Because AHI was interfering with the monitor levels, the controls for that have been moved to a separate program. Once that change was made,
the monitor levels don't get reset every time something opens AHI.. which was getting pretty irritating.
Most of this is detailed in the last blog entry.
So anyway, AHI and Mixer get control of the Recording input, and a separate program gets control of the Monitor input..
I'm just afraid that calling your Recording Gain and Level "monitor" will cause some confusion.
Thanks!
LyleHaze