Browse Source

ALSA logging fix.

tags/2021-05-28
jules 12 years ago
parent
commit
8e3a52ff14
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      modules/juce_audio_devices/native/juce_linux_ALSA.cpp

+ 3
- 3
modules/juce_audio_devices/native/juce_linux_ALSA.cpp View File

@@ -27,7 +27,7 @@ namespace
{
#ifndef JUCE_ALSA_LOGGING
#define JUCE_ALSA_LOGGING 1
#define JUCE_ALSA_LOGGING 0
#endif
#if JUCE_ALSA_LOGGING
@@ -898,14 +898,14 @@ public:
hasScanned (false),
listOnlySoundcards (onlySoundcards)
{
#if JUCE_ALSA_LOGGING
#if ! JUCE_ALSA_LOGGING
snd_lib_error_set_handler (&silentErrorHandler);
#endif
}
~ALSAAudioIODeviceType()
{
#if JUCE_ALSA_LOGGING
#if ! JUCE_ALSA_LOGGING
snd_lib_error_set_handler (nullptr);
#endif


Loading…
Cancel
Save