Win7: MME /vs/ Windows DirectSound?

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
hellosailor
Posts: 274
Joined: Sun Jun 22, 2008 6:11 pm
Operating System: Please select

Re: Win7: MME /vs/ Windows DirectSound?

Post by hellosailor » Fri Dec 07, 2012 5:28 pm

Gale-
"Are you asking for the Audacity meters to represent audio above 0 dB? "
If that's physically possible that would be one way to make it happen. Or if not can I:
1-make a recording, note the highest volume is maybe 0.8,
2-and then increase my input level from whatever it is by an additional 0.19,
3-and then make a new recording and expect it will show the highest volume at 0.999 instead?

In other words, measure max volume, do some real simple math, redo the recording and see the volume maxxed out without clipping?

"Both WDS and MME are emulated on Windows 7; those are the only choices Audacity has until it supports WASAPI."
I like wasapi on my sushi. [sic] <G>
I'll look forward to Audacity 3.0 and meanwhile keep looking for ways to get the noise out of 2.0.2. (Yes, the "static" attacks I had under Vista are still here in Win7. Different sound, but same problem. Perhaps if I installed the OS and the app in a month that didn't have an "R" in it...Oh, wait, no, that's just for bad oysters, isn't it? <G>)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Win7: MME /vs/ Windows DirectSound?

Post by Gale Andrews » Sat Dec 08, 2012 6:40 am

hellosailor wrote:Gale-
"Are you asking for the Audacity meters to represent audio above 0 dB? "
If that's physically possible that would be one way to make it happen.

Or if not can I:
1-make a recording, note the highest volume is maybe 0.8,
2-and then increase my input level from whatever it is by an additional 0.19,
3-and then make a new recording and expect it will show the highest volume at 0.999 instead?
I don't think it would (even theoretically) work like that because 0.8 on the meter could relate to different settings on the slider. It might work theoretically like that if your 0.8 on the meter was caused by 0.8 on the slider. If 0.8 on the meter is coming from 0.1 on the slider I would expect you to need much less than another 0.19 on the slider to get to 0.99 on the meter.

I see a clear relationship as I described between slider and meters when recording a tone in Audacity using stereo mix and adjusting the output slider in Audacity; for example if 0.5 on the output slider causes 0.8 recording level on the input meter, 0.25 on the slider causes 0.4 on the input meter.

Recording the same tone, the relationship with the input meter is not quite linear when moving the input slider; if 1.0 on the slider causes 0.5 on the meter, 0.5 on the slider causes 0.3 on the meter. And if I record the tone from the loudspeakers using a mic, I have to move the slider a lot further to get an equivalent change in input level.

I still don't understand for which physical (hardware) device you are trying to control the input volume. Is it the Behringer with the tape deck attached to it, or a mic attached directly to the computer? Can you make test recordings to get the level correct? That is the best practice.
hellosailor wrote:the "static" attacks I had under Vista are still here in Win7. Different sound, but same problem.
This is recording from the Behringer, and Windows Sound Recorder has the same problem as Audacity?



Gale
Last edited by Gale Andrews on Fri Apr 24, 2015 4:09 pm, edited 3 times in total.
Reason: Windows Media Player changed to Windows Sound Recorder
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

waxcylinder
Forum Staff
Posts: 14574
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Win7: MME /vs/ Windows DirectSound?

Post by waxcylinder » Sat Dec 08, 2012 1:07 pm

Thanks for bringing this up hellosailor - it gave me a useful nudge to update the Manual with the additional insight that Gale gave me earlier in this thread. :)

See:
http://manual.audacityteam.org/man/Device_Toolbar
http://manual.audacityteam.org/man/Devices_Preferences
http://manual.audacityteam.org/man/Tuto ... Your_Input

Peter
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

hellosailor
Posts: 274
Joined: Sun Jun 22, 2008 6:11 pm
Operating System: Please select

Re: Win7: MME /vs/ Windows DirectSound?

Post by hellosailor » Sun Dec 09, 2012 3:16 am

Gale-
"I see a clear relationship as I described between slider and meters when recording a tone in Audacity using stereo mix and adjusting the output slider in Audacity; for example if 0.5 on the output slider causes 0.8 recording level on the input meter, 0.25 on the slider causes 0.4 on the input meter. "
So you're saying it is a proportional relationship, that is, a 50% change on the slider brings a 50% change in the level recorded. Not a linear 1:1 correlation on the scales, but the change in proportion carries across as a "same" change in proportion. Logical, I guess. Something to consider changing, or building an alternate choice, so that a change of "0.3" up or down on the input, caused the same change of "0.3" on the output. Whether it was on the linear scale or the db scale, either way I'd have expected "same same" the same way that a 3db increase on a mixer would cause a 3db increase on recorded volume.

"And if I record the tone from the loudspeakers using a mic, I have to move the slider a lot further to get an equivalent change in input level." I'm afraid to guess, but maybe that is because the mic is not necessarily a linear device? Although of course playing and recursing a test tone would allow the software to MAKE the settings linearly proportional, that wouldn't be a trivial project.

"I still don't understand for which physical (hardware) device you are trying to control the input volume. Is it the Behringer with the tape deck attached to it...?"
Yes. The Behringer has no volume adjustment, and the tape deck I'm using has not output level adjustment. The resulting output from the deck, or from the Behringer, "is what it is" and there's no adjustment possible. I know, that's not professional but my Nakamichi needs some expensive repairs so I'm using what I can use, and relying on the PC's software to make recording level adjustments.

"Can you make test recordings to get the level correct? That is the best practice. " On the Nakamichi, sure.<G> But to make test recordings from the tape deck into the PC/Audacity? There's no such thing as a test, all I can do is make a recording, watch it, and if it goes into clipping, dump the recording and start over again with a guess about how much to lower the gain. So that can cost 1/2 hour to an hour every time there's a surprise, and if I haven't guessed right or want to make it closer, that's another 1/2 hour to hour lost. It can make a one-hour transfer into a six-hour task.

MOST of my tapes were carefully made on the Nakamichi but since they were made on three or four different tape types (two metal, chrome, high-bias) each of them also has some different characteristics, even if the music was similar. So I get batches that run fine with one pass, and others that make a simple job into a much longer one.

Being able to analyze the music and just match up some numbers would at least mean I didn't have to be there watching and guessing.

hellosailor
Posts: 274
Joined: Sun Jun 22, 2008 6:11 pm
Operating System: Please select

Re: Win7: MME /vs/ Windows DirectSound?

Post by hellosailor » Sun Dec 09, 2012 3:33 am

Peter-
I've had the toolbars turned on but part of the problem is simply that I'm never quite sure (bear in mind, I just upgraded the damned OS last month and got Aud back online a week ago) fo some of the selections to make. Sometimes, it seems that I can't get the computer to play what is being recorded no matter what I set, restart, or change. And yes, I have play-through enabled. Then sometimes, there's no telling why two different choices work, sometimes the same, sometimes not the same, no real indication which is better. And why the buzzing came back the other day, I have NO idea but there's probably something that was wrong with one of the selctions I was trying.

In Audacity:

First choice, WindowsDirect /vs/ MME, apparently should make no difference in anything except latency (not an issue here) and volume level (again not an issue, either can be adjusted.)

Second choice, Speakers, Primary Sound Driver / Soundmax Integrated / SPDIF Interface (SoundMax) / Speakers (USB Audio Device)
and one would think the Primary Sound Driver, or Soundmax Interated, would both be the same physical device, the laptop speakers. I'm not sure what the last reference is to since there are no USB speakers plugged in, this is pointing back to the Behringer's capability to have earphones I think.

Third choice, recording device, Primary Sound Capture Driver / Microphone (USB Audio Device) is again confusing since there is a physical mic in the laptop (and in the control panel choices) and no physical mic in the USB device, which is the Behringer.

Maybe Windows9 will include a recording applet that samples every one of the inputs and says "There's activity on xx line, do you want to use that as an input?" and make all our lives easier. I don't expect they will, I expect they'd rather make recording HARD to encourage purchases though.

Any advice for the overwhelmed and insufficiently caffienated? <G>

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Win7: MME /vs/ Windows DirectSound?

Post by Gale Andrews » Sun Dec 09, 2012 6:32 am

hellosailor wrote:Gale-
"I see a clear relationship as I described between slider and meters when recording a tone in Audacity using stereo mix and adjusting the output slider in Audacity; for example if 0.5 on the output slider causes 0.8 recording level on the input meter, 0.25 on the slider causes 0.4 on the input meter. "
So you're saying it is a proportional relationship, that is, a 50% change on the slider brings a 50% change in the level recorded. Not a linear 1:1 correlation on the scales, but the change in proportion carries across as a "same" change in proportion. Logical, I guess. Something to consider changing, or building an alternate choice, so that a change of "0.3" up or down on the input, caused the same change of "0.3" on the output.
I think this is probably out of Audacity's control. For a start, both the Audacity input and output sliders are supposed to work in tandem with the system slider, for the device currently chosen in Audacity Device Toolbar.

The Audacity sliders are not supposed to be a software slider that modifies the Audacity input and output level without moving the system slider that controls the hardware. Of course the volume slider in Windows Media Player is just that, a software slider.
hellosailor wrote:Gale - "I still don't understand for which physical (hardware) device you are trying to control the input volume. Is it the Behringer with the tape deck attached to it...?"
Yes. The Behringer has no volume adjustment, and the tape deck I'm using has not output level adjustment. The resulting output from the deck, or from the Behringer, "is what it is" and there's no adjustment possible. I know, that's not professional but my Nakamichi needs some expensive repairs so I'm using what I can use, and relying on the PC's software to make recording level adjustments.
Indeed it is not professional... :) Is there no working headphones output on the tape deck, with a volume control that attenuates that output?
hellosailor wrote:"Can you make test recordings to get the level correct? That is the best practice. " On the Nakamichi, sure.<G> But to make test recordings from the tape deck into the PC/Audacity? There's no such thing as a test, all I can do is make a recording, watch it, and if it goes into clipping, dump the recording and start over again

MOST of my tapes were carefully made on the Nakamichi but since they were made on three or four different tape types (two metal, chrome, high-bias) each of them also has some different characteristics, even if the music was similar. So I get batches that run fine with one pass, and others that make a simple job into a much longer one.
It depends if you know the music beforehand, I suppose. I wouldn't have that problem with the few tapes I have because I would just monitor the loudest part in Audacity then adjust the slider to reach -6 dB on the meters before recording.

Of course if the recorded level isn't consistent on the same tape, that's a problem.
hellosailor wrote:Being able to analyze the music and just match up some numbers would at least mean I didn't have to be there watching and guessing.
It wouldn't if you don't know where the loudest part of the tape is and if the recorded level is inconsistent. Otherwise, you can make a test recording (or monitor before recording) and solve the problem.

In any case, whatever gain you need from 0.1 on the slider to reach a satisfactory level on the meter is probably repeatable with the same equipment.

Plus, you should not be recording up to 0.999 on the meter anyway, especially if you don't know the music or the consistency of the tape level.

I may still have an old test build of Audacity that has an experimental "recording level control" made by a GSoC student. It is supposed to be used to automatically set the recording level in a pre-recording test, so you don't have to fiddle with the input slider to find its optimum level. It is not supposed to be used for live recording, or it will probably act much like a compressor and limit the dynamic range. Do you want to try it, if I can find it? It will be an old Beta version of Audacity, unless the patch still builds, so entirely at your own risk.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Win7: MME /vs/ Windows DirectSound?

Post by Gale Andrews » Sun Dec 09, 2012 7:35 am

hellosailor wrote:Sometimes, it seems that I can't get the computer to play what is being recorded no matter what I set, restart, or change. And yes, I have play-through enabled. Then sometimes, there's no telling why two different choices work, sometimes the same, sometimes not the same, no real indication which is better. And why the buzzing came back the other day, I have NO idea but there's probably something that was wrong with one of the selctions I was trying.

All these symptoms are indicative of a built-in sound device that is broken (or its drivers are), and/or too close to the working parts of the computer and/or the computer is under too much strain.

What RAM and GHz is the laptop? What screen size?

The only playback difference should be this. If you have your speakers or headphones set as the default Windows playback device, then in Audacity you can choose either (a) that named speakers or headphones device, or (b) the mapped output device. The mapped device is either "Microsoft Sound Mapper - Output" if you choose MME host, or "Primary Sound Capture Driver" if you choose "Windows Direct Sound" host.

If you then connected the Behringer to the computer and made that the default Windows playback device (or it became such), you would lose sound in Audacity unless you had chosen the mapped output or unless you change the playback device to the Behringer.

If you don't want the Behringer to take over as default Windows playback device when you connect it, make the laptop speakers default on the "Playback" tab of Windows "Sound", then unplug Behringer from the laptop. Next time you plug-in the Behringer, the laptop speakers should remain Windows default playback device.

Note that this trick probably only works on Vista and later; on XP the Behringer would probably always take over as the computer playback device when plugged in.
hellosailor wrote:
In Audacity:
First choice, WindowsDirect /vs/ MME, apparently should make no difference in anything except latency (not an issue here) and volume level (again not an issue, either can be adjusted.)
Probably correct for Windows Vista and later. It would make a difference on Windows XP. Because of the lower latency (playback as well as recording) you could quite easily find on an underpowered XP computer that you only got software playthrough from a USB device when choosing Windows Direct Sound.
hellosailor wrote:
Second choice, Speakers, Primary Sound Driver / Soundmax Integrated / SPDIF Interface (SoundMax) / Speakers (USB Audio Device)
and one would think the Primary Sound Driver, or Soundmax Interated, would both be the same physical device, the laptop speakers.
See above. Primary Sound Driver is only the laptop speakers when the laptop speakers are default playback device in Windows "Sound".
hellosailor wrote: I'm not sure what the last reference is to since there are no USB speakers plugged in, this is pointing back to the Behringer's capability to have earphones I think.
If playback to the laptop speakers or headphones is unsatisfactory (in terms of predictability) why not use the headphones out of the Behringer, which is hardware playthrough? Then you can turn Software Playthrough in Audacity off.
hellosailor wrote: Third choice, recording device, Primary Sound Capture Driver / Microphone (USB Audio Device) is again confusing since there is a physical mic in the laptop (and in the control panel choices) and no physical mic in the USB device, which is the Behringer.
The built in sound device can never be called "USB".

Most USB devices that have no input selection choice in Windows "Sound" (such as Behringer UCA 202, USB turntables and USB cassette decks) will be called a "microphone" in the "Recording" tab of Windows "Sound".

Note: If your Input Device in Device Toolbar really only has a choice of Primary Sound Capture Driver and Microphone (USB) then (at best) the built-in inputs are all disabled in Windows.

Please record from the Behringer in Windows Sound Recorder as an experiment (Windows Globe, type in the search box "sound recorder" (without quotes) then double-click "Sound Recorder" when it appears in the search results). You will need to make the Behringer default recording device on the "Recording" tab of "Sound" in Windows in order to make Sound Recorder record from the Behringer. Does that have static attacks?

If I was in your position I would verify the drivers of the built in sound device.

In Audacity for recording from the Behringer I would choose Windows Direct Sound host, set Audacity project rate to 48000 Hz (which is the usual Behringer specification), and check (tick) both "Exclusive Mode" boxes in Windows (see here for how to do that).

I would monitor the recordings in headphones in the Behringer and use the Behringer as the computer playback device (for playing songs in Windows Media Player and so on).


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Post Reply