Changeset 6081:2a01850a9a8b in roaraudio


Ignore:
Timestamp:
09/06/15 10:45:24 (9 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Fix: Updated structs to match libsndio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroarsndio/sndiosym.h

    r6052 r6081  
    5858#endif 
    5959 
     60#define SIO_DEVANY      "default" 
     61#define MIO_PORTANY     "default" 
     62 
    6063#define SIO_PLAY        1 
    6164#define SIO_REC         2 
     
    6871#define SIO_XSTRINGS    {"ignore", "sync", "error"} 
    6972 
    70 #define SIO_NENC        16 
    71 #define SIO_NCHAN       8 
    72 #define SIO_NRATE       16 
    73 #define SIO_NCONF       4 
     73#define SIO_NENC        8 
     74#define SIO_NCHAN       8 
     75#define SIO_NRATE       16 
     76#define SIO_NCONF       4 
    7477 
    7578#define SIO_ENCMAX      10 
     
    102105 unsigned pchan;         /* number channels for playback */ 
    103106 unsigned rate;          /* frames per second */ 
     107 unsigned bufsz;         /* end-to-end buffer size (read-only) */ 
     108 unsigned xrun;          /* what to do on overrun/underrun */ 
     109 unsigned round;         /* optimal buffer size divisor */ 
    104110 unsigned appbufsz;      /* minimum buffer size without xruns */ 
    105  unsigned bufsz;         /* end-to-end buffer size (read-only) */ 
    106  unsigned round;         /* optimal buffer size divisor */ 
    107  unsigned xrun;          /* what to do on overrun/underrun */ 
     111 int __pad[3];           /* for future use */ 
     112 unsigned int __magic;   /* for internal/debug purposes only */ 
    108113}; 
    109114 
     
    119124 unsigned pchan[SIO_NCHAN];      /* allowed pchans */ 
    120125 unsigned rate[SIO_NRATE];       /* allowed rates */ 
     126 int __pad[7];                   /* for future use */ 
    121127 unsigned nconf;                 /* num. of confs[] */ 
    122128 struct sio_conf { 
Note: See TracChangeset for help on using the changeset viewer.