Changeset 4505:5d510a0e583b in roaraudio


Ignore:
Timestamp:
10/13/10 03:26:10 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

moved stuff into external file

Location:
roard
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • roard/caps.c

    r4504 r4505  
    2626#include "roard.h" 
    2727 
     28static uint32_t _g_caps_standards[] = { 
     29 0x11223344, 
     30 0x00000101, 
     31 0x01010008, 
     32 0x02098800, 
     33 0x03098807 
     34}; 
     35 
     36struct roar_stds g_caps_stds = { 
     37 .stds_len = sizeof(_g_caps_standards)/sizeof(*_g_caps_standards), 
     38 .stds     = _g_caps_standards 
     39}; 
     40 
    2841//ll 
  • roard/include/caps.h

    r4504 r4505  
    2929#include <roaraudio.h> 
    3030 
     31struct roar_stds g_caps_stds; 
     32 
    3133#endif 
    3234 
  • roard/req.c

    r4500 r4505  
    664664 switch (caps.type) { 
    665665  case ROAR_CT_STANDARDS: 
    666     if ( (stds = roar_stds_new(1)) == NULL ) 
    667      return -1; 
    668     stds->stds[0] = 0x11223344; 
     666    if ( (stds = roar_stds_new(g_caps_stds.stds_len)) == NULL ) 
     667     return -1; 
    669668 
    670669    for ( i = 0; i < stds->stds_len; i++) { 
    671      stds->stds[i] = ROAR_HOST2NET32(stds->stds[i]); 
     670     stds->stds[i] = ROAR_HOST2NET32(g_caps_stds.stds[i]); 
    672671    } 
    673672 
Note: See TracChangeset for help on using the changeset viewer.