print question - windows 7 tuning tips for audio processing

11
10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing www.native-instruments.com/knowledge/questions/847/__print 1/11 This question is also available for viewing online at /knowledge/questions/847/ Windows 7 Tuning Tips for Audio Processing Eine deutschsprachige Fassung dieses Artikels finden Sie als PDF unterhalb des englischen Textes. La versión en Español del artículo "Guía para optimizar el procesamiento de audio en Windows 7" se encuentra en formato PDF al final del texto en Inglés. Vous trouverez une traduction française de cet article comme fichier PDF en-dessous du texte anglais. この記事の日本語版をPDFでご用意しています。 英語本文の末尾にリンクがありますのでご参照下さい。 Disclaimer: This article mentions some third party tools which are not related to Native Instruments at all. Though we have successfully tested the mentioned tools in-house for a longer time, this and comparable tools can potentially damage your computer and harm the manufacturer's warranty for your computer and connected hardware. If you want to make sure that you do not act against the license agreements or other instructions given for the use of your computer, please contact the manufacturer of your computer or the developer of the third party tool directly. Important: Don’t skip any of the following steps! Partially completing any of these steps also will not help! Introduction The list of brands for Windows computers, as well as the possible combination of hardware used in PCs is practically unlimited – this can lead to compatibility issues or undesired interaction of components. Also, many PC computers and their components are designed to deliver good performance for office applications or gaming. The demands placed on a computer used for music production are usually quite different than those for office or gaming computers. As a result, it is often necessary to tune off-the-shelf or self-built computer systems so they perform well enough for real-time audio. This article shows the most important tuning tips. Each tip mentioned here has already helped a lot of users, so in case you have to deal with audio dropouts and artifacts, take the time to print out this article, read it carefully and try one suggestion after another. Use ASIO Drivers First, download and install the latest driver for your soundcard. From within the audio application you use, make sure you always make use of the ASIO driver for your soundcard, and not the DirectSound or WASAPI driver. If an ASIO driver is not available for your soundcard, then you can download and install ASIO4ALL, a generic ASIO driver that works with most soundcards. To use this, please download the latest ASIO4ALL driver from the following link: http://www.ASIO4ALL.com or http://download.cnet.com/ASIO4ALL/ Please note that a professional audio device that provides its own ASIO driver usually performs better than when using ASIO4ALL with a generic soundcard. Typically, audio interfaces designed specifically for music recording and production have better audio quality, better performance and ship with ASIO drivers specific to the device. Native Instruments offers a number of professional grade interfaces with ASIO drivers, designed for different purposes, such as AUDIO KONTROL 1 or AUDIO 8 DJ. Latency Setting

Upload: marko-dabetic

Post on 21-Oct-2015

34 views

Category:

Documents


0 download

DESCRIPTION

tips & tricks

TRANSCRIPT

Page 1: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 1/11

This question is also available for viewing online at /knowledge/questions/847/

Windows 7 Tuning Tips for Audio Processing

Eine deutschsprachige Fassung dieses Artikels finden Sie als PDF unterhalb des englischen Textes.

La versión en Español del artículo "Guía para optimizar el procesamiento de audio en Windows 7" se encuentra enformato PDF al final del texto en Inglés.

Vous trouverez une traduction française de cet article comme fichier PDF en-dessous du texte anglais.

この記事の日本語版をPDFでご用意しています。 英語本文の末尾にリンクがありますのでご参照下さい。

Disclaimer: This article mentions some third party tools which are not related to Native Instruments at all. Though we havesuccessfully tested the mentioned tools in-house for a longer time, this and comparable tools can potentially damage yourcomputer and harm the manufacturer's warranty for your computer and connected hardware. If you want to make sure thatyou do not act against the license agreements or other instructions given for the use of your computer, please contact themanufacturer of your computer or the developer of the third party tool directly.

Important: Don’t skip any of the following steps! Partially completing any of these steps also will not help!

Introduction

The list of brands for Windows computers, as well as the possible combination of hardware used in PCs is practicallyunlimited – this can lead to compatibility issues or undesired interaction of components. Also, many PC computers andtheir components are designed to deliver good performance for office applications or gaming. The demands placed on acomputer used for music production are usually quite different than those for office or gaming computers. As a result, it isoften necessary to tune off-the-shelf or self-built computer systems so they perform well enough for real-time audio. Thisarticle shows the most important tuning tips. Each tip mentioned here has already helped a lot of users, so in case youhave to deal with audio dropouts and artifacts, take the time to print out this article, read it carefully and try one suggestionafter another.

Use ASIO Drivers

First, download and install the latest driver for your soundcard. From within the audio application you use, make sure youalways make use of the ASIO driver for your soundcard, and not the DirectSound or WASAPI driver.

If an ASIO driver is not available for your soundcard, then you can download and install ASIO4ALL, a generic ASIO driver thatworks with most soundcards. To use this, please download the latest ASIO4ALL driver from the following link:

http://www.ASIO4ALL.com

or

http://download.cnet.com/ASIO4ALL/

Please note that a professional audio device that provides its own ASIO driver usually performs better than when usingASIO4ALL with a generic soundcard. Typically, audio interfaces designed specifically for music recording and productionhave better audio quality, better performance and ship with ASIO drivers specific to the device. Native Instruments offers anumber of professional grade interfaces with ASIO drivers, designed for different purposes, such as AUDIO KONTROL 1 orAUDIO 8 DJ.

Latency Setting

Page 2: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 2/11

Computers need to use an audio buffer in order to temporarily store audio data, while the computer’s main processorswitches between processing different tasks, such as the graphical display, hard drive access, data exchange withconnected peripherals such as MIDI controllers and, of course, the processing of audio. Because it can’t do all of thesethings at once, it needs to buffer data from the various processes – and this is where the audio buffer (also named buffersize, latency, process buffer, sample buffer) comes in. The rule of thumb is, the faster the computer, the more calculationsit can handle every second and the smaller the audio buffer can be.

A smaller audio buffer is preferable because there is a direct relation between the audio buffer size and the resultinglatency. The term latency describes the delay between performing an action (e.g. singing into a microphone) and hearing aresult (e.g. hearing your voice come back out of the speakers). The larger the buffer size the larger the latency, and with it,the longer is the delay between taking an action and hearing a result. This can be distracting when performing. The downside of using a smaller buffer size is, that the smaller the buffer size/latency, the harder your computer has towork. If your computer can’t handle all the work it is tasked with at the selected buffer size, you will start hearing pops andclicks or other artifacts in your audio. This means that you will have to increase the audio buffer size, so your computer cancope with the workload.

Start out with an ASIO latency setting (buffer size) of 512 and check if this gives you artifact free results. If not, increase thebuffer size by one increment at a time and try again.

However, on some modern Multicore CPUs you may get better results with lower latency settings than with higher settings(e.g. there may be crackles with 512, but not with 256 samples set as buffer). Therefore test at least the settings 256 and512.

TRAKTOR only: Try using multiples of 128 samples first as these settings often deliver the best results for TRAKTORusers; i.e.: 128, 256, 384 and 512.

Third-party Analyzing Tools

It can at times be difficult to identify the root cause of PC performance problems. Fortunately, some applications areavailable online and free of charge, that can be a great help with resolving such issues. The DPC Latency Checker(described below) visually shows if anything that is running on your computer is getting in the way of audio processing, andgives an idea how severe the problem is. Once you identify that there is a problem, the LatencyMon application makes itpossible to identify the specific driver or service that is the cause of the issue. Both applications and their general usageare explained below.

DPC Latency Checker

1. Download and run the "dpclat.exe" application from the Thesycon website.2. Start the application (no installation required).3. Let it run for one or two minutes while your audio software is running as well.

Depending on the your computer's configuration you get only green bars (good) or you get yellow or even red bars (bad).

The screenshot below shows a computer system which should be well suited for real-time audio:

Page 3: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 3/11

The following screenshot indicates that your computer most likely produces dropouts and audio artifacts:

Page 4: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 4/11

If you see any yellow or even red spikes, they indicate that other (usually non-audio related) processes are occupying yourcomputer’s CPU for too long, with the likely result that this will cause the audio buffer to run empty, resulting in glitches,clicks or distortion in your audio.

While the DPC Latency Checker gives a visual impression if your computer is running efficiently, or if anything is getting inthe way of good audio performance, it does not show which specific device or driver is causing the problem. If DPC Latencychecker is showing that there is a problem, you can use LatencyMon (described next) to identify which device, driver orservice is the cause of the issue.

LatencyMon

If DPC Latency Checker (see last section) shows any yellow or red spikes, run LatencyMon to identify the exact cause of theproblem. The LatencyMon installer can be downloaded from here:

http://resplendence.com/latencymon

After you have launched LatencyMon, you first need to press the green Play button in the upper left corner to generate ananalysis of the processes running on your computer. Run the analysis for at least 4 minutes while your audio software isrunning as well:

Page 5: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 5/11

Click on the Drivers tab to see the results of the driver monitoring. Then click the column header labeled HighestExecution (ms) twice in order to see the highest values above (you may need to maximize the window to see this column).

In the screenshot below you can see no problematic drivers, since everything is significantly lower than 1. All values below1 are usually not problematic. Anything above may cause crackles and/or dropouts with real-time audio applications.

Note: The individual latencies of single drivers may sum up to more then 1ms overall latency (e.g. if you have drivers withresults of 0.9 and 0.5, then those may sum up to 1,4ms which then can also create problems in the same way as if youwould have one driver with 1.4ms latency).

Page 6: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 6/11

If you have values above 1, check to which devices the affected driver(s) belong, then disable the affected device(s) inWindows Device Manager if possible. If you are unsure if the device can be disabled, then you should try to search the webfor the driver's name and/or for the description of the device (as shown in column 2) in order to find out if this device cansafely be disabled.

We have compiled a list of drivers often reported to the Native Instruments support as causing high Highest Executionvalues in Latency Mon. This list and some hints about the related components are attached to this article as PDFdocument below.

Deactivate Devices in the Windows Device Manager

Most often, the cause of audio dropouts are drivers or background services that are not related directly to audio processing.They task the CPU regularly and take away needed resources required to process audio without interruptions. LatencyMonshould have given you an idea which drivers or components on your computer may contribute to your audio performanceproblems – if necessary, you should have searched the internet to find out which of the file names LatencyMon listed asproblematic belong to which devices or drivers on your computer. With the list of names of potential problematic devices ordrivers in front of you, start the Windows Device Manager.

Page 7: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 7/11

Important: Here is a list of devices that you should never deactivate since these are essential components required byWindows: System timer, Keyboard, System CMOS/real time clock, Microsoft ACPI-Compliant System, Numeric dataprocessor, Primary IDE Channel, Secondary IDE Channel, Graphics Controller, Ultra ATA Storage Controllers. In general,

you should not deactivate anything which is listed in the branch "System Devices".

1. Right click the Computer icon on your desktop. Then select Properties > Device Manager2. In the Device Manager, locate the device(s) LatencyMon reported as problematic. If this is a device that is not

essential for the basic operation of your computer (see note above), right click on the component and choosedeactivate (not uninstall!). Once you disabled the problematic devices (according to LatencyMon), test if thisresolved the audio dropouts issue.

3. Additional devices that can often be disabled to further preserve system resources (or to test if saving additionalresources helps to resolve the problem), even if LatencyMon may not have listed them as problematic, are thefollowing:

Network adapterWLAN cardBluetooth portInfrared PortACPI compliant batteryTrackpad (only disable, if a mouse is also connected)Video cameraDVD driveAny third party component that is not an essential part of the system (be careful and only deactivatecomponents you recognize and that are not required for Windows to function)Built-in sound card (only if you are using an external sound card such as TRAKTOR AUDIO 6/10 or anotherUSB sound interface from a third-party manufacturer)

Disconnect USB and Firewire Devices

For the purpose of identifying which device or driver may introduce the audio problem you are experiencing, disconnect orremove all USB or FireWire devices attached to your computer, except for your audio interface. Then test if the problems stillpersist. If not, connect one device at a time and test again. If the problem re-appears after re-connecting a specific device,look for an updated driver or updated firmware for that device or contact its manufacturer. Another possible reason for audiodropouts is if a bus-powered USB audio device does not get enough power from the USB port. A common cause is if otherdevices connected to the same internal USB root hub are consuming too much of the shared available power. Afterensuring the problem goes away when disconnecting all additional devices, connect one device at a time to the variousUSB ports on your computer and test if any of the ports works better.

BIOS Update

BIOS stands for Basic Input Output System which is a mini-Operating System that runs on a chip on your mainboard. TheBIOS controls how the mainboard’s individual components work together (on a hardware management level, beforeWindows gets added to the mix). BIOS updates typically improve the performance of your mainboard’s components –mostly by fixing bugs. Just like with brand new software, updates for the BIOS are often released after new computers aresold, and resolve bugs or improve performance – sometimes dramatically.

If you have an off-the-shelf brand name computer (e.g. Dell, HP/Compaq, etc.) visit the manufacturer’s homepage anddownload and install the latest available BIOS update for your exact computer model. Instructions for this are usuallyposted on the website, or come with the downloaded update. If you have a self-built computer, visit the mainboardmanufacturer’s website to find the latest BIOS update. Running the latest BIOS version is very important if you need to getthe best performance from your computer!

Chipset / Component Driver Update

Chipset refers to a group of important processor chips (aside from the computer’s main processor) on your computer’smainboard, that are handling essential functions, such as harddrive and USB operation, etc. Some common chipsetmanufacturers are Intel, AMD, Nvidia, SiS or VIA. Windows usually has a set of generic chipset drivers built-in, however,these are often designed as a one-size-fits-all solution for the purpose of being compatible with as many different modelsas possible. The custom-tailored drivers provided by the chipset’s manufacturer often get much better performance thanWindows’ built-in generic drivers.

Page 8: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 8/11

If you have an off-the-shelf brand name computer (e.g. Dell, HP/Compaq, etc.) visit the manufacturer’s homepage anddownload and install the latest available chipset drivers for your exact computer model. Installation instructions are usuallyposted on the computer manufacturer’s website, or come with the downloaded updates. If you have a self-built computer,

visit the mainboard manufacturer’s website to find the latest chipset drivers.

The same applies to all other hardware components installed in your computer: Download and install all available driverupdates for components such as network adapters, built-in audio interfaces, FireWire controllers, graphics drivers and anyother devices or peripherals installed in, or attached to your computer. For brand name computers, these drivers canusually also be found on the computer manufacturer’s website. For self-built computers, you will need to visit the websites

of the manufacturer of each hardware component and download and install their latest available drivers.

Energy Options

Modern computer systems, and especially mobile devices, are engineered for the purpose of saving as much energy aspossible. However, this is often at the cost of the computer’s overall performance, making it more likely to experience audiodropouts. The following should be tried to eradicate energy-saving related performance problems.

1. Go to Start > Control Panel > System and Security > Power Options.2. Set the Power Scheme to High Performance (if this setting is not available, click on Show additional plans first).

Then click on Change plan settings. On the next page set both Turn off the display and Put the computer to sleepto Never.

Then click Change advanced power settings. In the window that opens make sure you have the following settings:

Hard disc > Turn off hard disk after > Setting (Minutes) = NeverSleep > Sleep after > Setting (Minutes) = NeverUSB settings > USB selective suspend setting > Setting = DisabledDisplay > Turn off display after > Setting (Minutes) = NeverProcessor power management > Minimum processor state > Setting = 100%Processor power management > Maximum processor state > Setting = 100%

Page 9: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 9/11

Graphic Card Tools

Some graphic card tools like Ati Power Play and Nvidia Powermizer interfere with real-time audio, since they prioritize thegraphic card performance over other processes in the system. Try to disable or uninstall these tools.

With some Nvidia laptop graphic chips, simply deactivating the graphic drivers in the Windows device manager canoccasionally help to fix audio dropout problems. When you deactivate the graphic driver in the device manager, a standardWindows video driver is used after the next system reboot. This should help to identify if the graphic driver is a possiblecause of the problem.

Manufacturer's Energy Saving Tools

Many laptop manufacturers install a proprietary application that takes over the control of the energy settings of the CPU andother computer components. As a result the energy settings made in the Windows energy options do not become effective.Deactivate any such application and test if the settings described in the previous section (Energy options) then solve theperformance issues you experience.

Disable Power Saving Option of the USB Ports

In the device manager (Start > Control Panel > System and Security > System > Device Manager), in the Universal SerialBus controllers section, right click each USB Root Hub, choose Properties > Power Management and untick the Allow thecomputer to turn off this device to save power option.

Page 10: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 10/11

Microsoft Hotfix for USB Spikes

There is a known issue regarding the functionality of external high-speed USB audio interfaces under Windows 7 orWindows Vista Systems. You can find further info and a hotfix from Microsoft here:

http://support.microsoft.com/kb/981214

In case you experience audible artifacts like crackles and dropouts occurring with the interval of 15 seconds while using aUSB audio interface, these should be eliminated after applying this hotfix.

Note: This hotfix will not remove the visib le spikes that you see in your Windows Task Manager, since these are caused bythe way of measuring the CPU load and do not really reflect the real CPU consumption in the moments those spikesappear.

Aero

Aero is the graphical user interface used by Windows 7 by default. Aero is usually accelerated by the graphic hardware ifyou use a video card compatible with DirectX 9 or higher. However, it can cause audio dropouts with older video cards,especially when moving the mouse or when any refresh of the graphical user interface is necessary. If you experienceaudio dropouts due to Aero, you can disable it as follows:

1. Right-click on the desktop and choose Personalize.2. Scroll down and select a color scheme from the Basic and High Contrast Themes section, such as Windows

Classic.

Note: Video Card model versions earlier than ATI 3800 and Nvidia 8600 series might cause performance issues with somevisual features of Windows 7.

Page 11: Print Question - Windows 7 Tuning Tips for Audio Processing

10.11.13. Print Question - Windows 7 Tuning Tips for Audio Processing

www.native-instruments.com/knowledge/questions/847/__print 11/11

Processor Scheduling

The Processor scheduling setting lets you choose if your computer should process Programs with higher priority, orBackground Services with higher priority. In this context, Programs refers to applications you can see running on yourscreen. Background Services refers to software that you don't directly interface with, but that is running in the backgroundand is taking care of essential invisible tasks. The most important example of a background service in the context of thisguide, is the driver for your audio interface.

Most of the time, the reason for dropouts and audio artifacts is because the audio interface driver (or the driver's buffer)can't process all data in time. Increasing the processing priority for background services (and with it, the priority of the audiodriver) often contributes to better over-all audio performance.

To configure your computer to process background services with higher priority, do the following:

1. Right click the Computer icon on your desktop. Then select Properties > Advanced System Settings2. On the Advanced tab under Performance click the Settings... button.3. Again, on the Advanced tab under Performance Options select Background services.

Please note that some applications may work better if the Processor Scheduling parameter remains set to Programs. Ifyour audio performance worsens after following the steps above, revert the setting back to Programs. You may also refer tothe documentation of the manufacturer of the software for more information on what setting should be used.