Changeset 5662:6c1654f74e24 in roaraudio for roard


Ignore:
Timestamp:
09/23/12 09:29:28 (7 years ago)
Author:
phi
Branch:
default
Message:

Avoid warning about failed memlock on win32 (Closes: #329)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r5651 r5662  
    24992499 if ( g_config->memlock_level == -1 ) { 
    25002500  g_config->memlock_level = MEMLOCK_DEFAULT; 
    2501  } 
    2502  
    2503  if ( memlock_set_level(g_config->memlock_level) == -1 ) { 
    2504   ROAR_WARN("Can not set memory locking level to target level."); 
     2501  // do not print warning in case of failure and useage of default level. 
     2502  memlock_set_level(g_config->memlock_level); 
     2503 } else { 
     2504  if ( memlock_set_level(g_config->memlock_level) == -1 ) { 
     2505   ROAR_WARN("Can not set memory locking level to target level."); 
     2506  } 
    25052507 } 
    25062508 
Note: See TracChangeset for help on using the changeset viewer.