Changeset 3665:c5a64a24bef4 in roaraudio


Ignore:
Timestamp:
04/04/10 13:32:15 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added a lot debug lions, fixed bug with mixer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroaross/libroaross.c

    r3664 r3665  
    451451 int i; 
    452452 
     453 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = ?", pathname, flags); 
     454 
    453455 for (i = 0; _device_list[i].prefix != NULL; i++) { 
    454456  if ( !strcmp(pathname, _device_list[i].prefix) ) { 
     
    461463 
    462464 if ( (session = _open_session(NULL, NULL)) == NULL ) { 
     465  ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1", pathname, flags); 
    463466  return -1; 
    464467 } 
     
    466469 if ( (handle = _open_handle(session)) == NULL ) { 
    467470  _close_session(session); 
     471  ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1", pathname, flags); 
    468472  return -1; 
    469473 } 
     
    484488       handle->stream_dir = ROAR_DIR_LIGHT_OUT; 
    485489      break; 
     490     case HT_MIXER: 
     491      break; 
    486492     default: 
     493       ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1", pathname, flags); 
    487494       return -1; 
    488495    } 
     
    500507      break; 
    501508     default: 
     509       ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1", pathname, flags); 
    502510       return -1; 
    503511    } 
     
    509517      break; 
    510518     default: 
     519       ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1", pathname, flags); 
    511520       return -1; 
    512521    } 
     
    535544 if ( (pointer = _open_pointer(handle)) == NULL ) { 
    536545  _close_handle(handle); 
     546  ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = -1", pathname, flags); 
    537547  return -1; 
    538548 } 
     549 
     550 ROAR_DBG("_open_file(pathname='%s', flags=0x%x) = %i", pathname, flags, pointer->fh); 
    539551 
    540552 return pointer->fh; 
Note: See TracChangeset for help on using the changeset viewer.