Help with Audacity config and errors

Hi, i’m hoping someone can help me, as ive read so many tutorials and threads trying to figure this out, and i can’t.

i just got a new pc built and what i have been trying to do is basically mimic my set up on my old xp machine, as this one has windows 7 ultimate.

i have audacity 2.0.3, and everything is fine. but if i open kontakt 5, and try to play audio in audacity… audacity gives me the “unanticipated host error” followed by “error while opening sound device. please check the output device settings and the project sample rate”. as soon as i close kontakt, audacity will play the file fine again.

i know it sounds like a kontakt problem, but i’ve never been 100% sure on what audacities input/output should be. ive only always used stereo mix to record. and on this machine there are different items listed.
for audio host it has “mme” and “windows direct sound” it is set to “windows direct sound”
output device has “primary sound driver” “speakers(realtek hi def)” “realtek hdmi” and “realtek digital out” it is set to “speakers”
the input device has “primary sound capture driver” and "stereo mix(realtek hd)"and is set to “stereo mix”

ive tried it with it set all different, and with passthrough on and off but still i cant figure it out. i also unchecked the “exclusive” boxes in the sound window

how it worked on my xp machine…i would load a track into audacity…be able to play (and hear) the track while i played notes on kontakt 5. it was very helpful when figuring out additions to tracks like choirs, ect…

ive researched the errors ive got and read a lot of things on them, none of which have given me a solution. then again, i get confused easy lol

thanks in advance for anyone who has any ideas

So you used to record from stereo mix in Audacity while you played sounds in Kontakt?

Does Kontakt show as an audio device itself in Windows? I assume not, but you can check by running Kontakt then right-click over the speaker icon by the system clock, then choose “Recording Devices”.

Can you post the content of Help > Audio Device Info… in Audacity?

Does the error go away if you turn off Transport > Overdub in Audacity? If you leave overdub on, does the error go away if you make sure the sample rate of all the Audacity tracks is the same as the project rate?

Windows DirectSound (with the project and track rates matched as above), also with both “exclusive modes” boxes checked in Windows is usually the best choice. Start with 44100 Hz or 48000 Hz rate in Audacity. See http://wiki.audacityteam.org/wiki/Windows_7_OS#sample_rates .

Have you also investigated whether you have got the correct audio drivers for the motherboard you installed (supplied by the motherboard maker)? See http://wiki.audacityteam.org/wiki/Windows_7_OS#sample_rates .

If the problems won’t go away after testing all of the above, you could try downloading this replacement Audacity executable:
http://gaclrecords.org.uk/bugs/audacity_revert_r12160.zip .

Quit Audacity 2.0.3, extract “audacity_revert_r12160.exe” from the downloaded zip file into your Audacity 2.0.3 installation folder then run “audacity_revert_r12160.exe” instead of “audacity.exe” (which is the installed 2.0.3).

This would show if a specific change we made for Windows Vista or later 2.0.3 is the cause of your problem. It would not prove very much though unless you have appropriate drivers for your sound device.


Gale

Thanks Gale!

yes. audacity on my old pc was set to stereo mix. thats how i recorded my choirs from kontakt, and also tts voices with textaloud. i can still record everything fine, just the way i used to…the problem im having is that audacity gives me those errors when i try to play a track when kontakt is open.

no, kontakt doesnt show as an audio device.

the errors remain if i turn off/on overdub and also software playthru

as far as the drivers…when i 1st installed audacity on this machine, there was no stereo mix, even after showing disabled ect… researching that, i was told to get the realtek high definition driver which made the stereo mix available. so that was fine. ill go and look for a driver for my motherboard , but i think i already did that

here is the audio device info you asked for. ill go search for a newer driver and then i guess try the revert zip

AUDIO DEVICE INFO

==============================
Default capture device number: 1
Default playback device number: 3
==============================
Device ID: 0
Device name: Microsoft Sound Mapper - Input
Host name: MME
Input channels: 2
Output channels: 0
Low Input Latency: 0.200000
Low Output Latency: 0.200000
High Input Latency: 0.400000
High Output Latency: 0.400000
Supported Rates:
==============================
Device ID: 1
Device name: Stereo Mix (Realtek High Defini
Host name: MME
Input channels: 2
Output channels: 0
Low Input Latency: 0.200000
Low Output Latency: 0.200000
High Input Latency: 0.400000
High Output Latency: 0.400000
Supported Rates:
==============================
Device ID: 2
Device name: Microsoft Sound Mapper - Output
Host name: MME
Input channels: 0
Output channels: 2
Low Input Latency: 0.200000
Low Output Latency: 0.200000
High Input Latency: 0.400000
High Output Latency: 0.400000
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
    352800
    384000
==============================
Device ID: 3
Device name: Speakers (Realtek High Definiti
Host name: MME
Input channels: 0
Output channels: 2
Low Input Latency: 0.200000
Low Output Latency: 0.200000
High Input Latency: 0.400000
High Output Latency: 0.400000
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
    352800
    384000
==============================
Device ID: 4
Device name: Realtek HDMI Output (Realtek Hi
Host name: MME
Input channels: 0
Output channels: 2
Low Input Latency: 0.200000
Low Output Latency: 0.200000
High Input Latency: 0.400000
High Output Latency: 0.400000
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
    352800
    384000
==============================
Device ID: 5
Device name: Realtek Digital Output (Realtek
Host name: MME
Input channels: 0
Output channels: 2
Low Input Latency: 0.200000
Low Output Latency: 0.200000
High Input Latency: 0.400000
High Output Latency: 0.400000
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
    352800
    384000
==============================
Device ID: 6
Device name: Primary Sound Capture Driver
Host name: Windows DirectSound
Input channels: 2
Output channels: 0
Low Input Latency: 0.000000
Low Output Latency: 0.000000
High Input Latency: 0.000000
High Output Latency: 0.000000
Supported Rates:
==============================
Device ID: 7
Device name: Stereo Mix (Realtek High Definition Audio)
Host name: Windows DirectSound
Input channels: 2
Output channels: 0
Low Input Latency: 0.000000
Low Output Latency: 0.000000
High Input Latency: 0.000000
High Output Latency: 0.000000
Supported Rates:
==============================
Device ID: 8
Device name: Primary Sound Driver
Host name: Windows DirectSound
Input channels: 0
Output channels: 2
Low Input Latency: 0.000000
Low Output Latency: 0.000000
High Input Latency: 0.000000
High Output Latency: 0.000000
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
==============================
Device ID: 9
Device name: Speakers (Realtek High Definition Audio)
Host name: Windows DirectSound
Input channels: 0
Output channels: 2
Low Input Latency: 0.000000
Low Output Latency: 0.000000
High Input Latency: 0.000000
High Output Latency: 0.000000
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
==============================
Device ID: 10
Device name: Realtek HDMI Output (Realtek High Definition Audio)
Host name: Windows DirectSound
Input channels: 0
Output channels: 2
Low Input Latency: 0.000000
Low Output Latency: 0.000000
High Input Latency: 0.000000
High Output Latency: 0.000000
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
==============================
Device ID: 11
Device name: Realtek Digital Output (Realtek High Definition Audio)
Host name: Windows DirectSound
Input channels: 0
Output channels: 2
Low Input Latency: 0.000000
Low Output Latency: 0.000000
High Input Latency: 0.000000
High Output Latency: 0.000000
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
==============================
Selected capture device: 7 - Stereo Mix (Realtek High Definition Audio)
Selected playback device: 9 - Speakers (Realtek High Definition Audio)
Supported Rates:
    8000
    9600
    11025
    12000
    15000
    16000
    22050
    24000
    32000
    44100
    48000
    88200
    96000
    176400
    192000
==============================
Available mixers:
==============================
Available capture sources:
0 - Master
==============================
Available playback volumes:
0 - PCM
==============================
Capture volume is native
Playback volume is native

Thanks for the Audio Device Info. I don’t see anything obviously wrong there.

Make sure the track rates and project rate (bottom left) match before discounting that as a possible cause.

I don’t think we would say anywhere to get a driver supplied by Realtek (as a first option) because Realtek only supply generic drivers - even given the audio device embedded in the motherboard is Realtek, their drivers would not be perfectly matched to your motherboard.


Gale

hi. the track rate and project rate are the same.

i ran the revert you told me to download and got the same result.

no it wasnt audacity that suggested the realtek driver, just some random forum thread somewhere i was reading.

anyways, im currently downloading the latest audio driver for my motherboard. so we’ll see.

any other suggestions? i wonder if running audacity and kontakt in xp mode would have a difference. i havent downloaded xp mode yet, as not really sure if it would make a difference.

Ok, so i downloaded the latest driver, and it didnt do much of anything.

but the good news is, is that i figured out it isnt a problem with audacity. it was actually the asio4all i downloaded for kontakt, which i guess you can only use one app at a time.

i got it to work the way i had it on my old pc.

i bought a virtual audio cable and set that as audacities output device, and also set it in the asio4all setting thru kontakt and everything works great.

you could probably mark this as solved or closed.

thanks for the help!

Thanks for letting us know.

So when this scenario worked on XP, was that also with the ASIO4ALL driver?

It does seem that you cannot use ASIO4ALL in more than one application, at least on Windows 7. There is a long thread about it, with possible workarounds here:
http://mtippach.proboards.com/post/6082/thread .

Audacity does not support ASIO as shipped in any case (due to licensing). ASIO support can be added for your own personal use if you compile Audacity from source code http://wiki.audacityteam.org/wiki/ASIO_Audio_Interface .

If on Windows 7 I set Wavosaur to use ASIO4ALL on the built-in sound device I don’t get any sound in Audacity (not ASIO enabled) if Audacity and ASIO4ALL are set to use the Speakers device. Audacity does not error if I play audio even if Wavosaur already is playing.

If I set Audacity to use the Headphones device then I can hear audio in Audacity while Wavosaur is using ASIO4ALL on the Speakers (obviously only if I plug the headphones in and so disable the speakers).

Irrespective of ASIO4ALL, if another program locks the sound device for its own use, Audacity will error.

OK, and I’ll make a more relevant title if that’s OK with you. But I won’t lock this topic just yet, as we would do with a “solved” topic.



Gale