Changeset 27:87f2808d4c17 in roaraudio


Ignore:
Timestamp:
06/21/08 13:32:31 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added prototype and some protection code for roar_get_vol()

Location:
include/libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/basic.h

    r8 r27  
    99#define LIBROAR_BUFFER_MSGDATA LIBROAR_BUFFER_SMALL 
    1010#define _ROAR_MESSAGE_VERSION 0 
     11 
     12#if ROAR_MAX_CHANNELS > (LIBROAR_BUFFER_SMALL - 10) 
     13#error ROAR_MAX_CHANNELS too large change ROAR_MAX_CHANNELS or LIBROAR_BUFFER_SMALL 
     14#endif 
    1115 
    1216struct roar_message { 
  • include/libroar/ctl.h

    r17 r27  
    3030int roar_kick         (struct roar_connection * con, int type, int id); 
    3131 
    32 int roar_set_vol      (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int channels); 
     32int roar_set_vol      (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int   channels); 
     33int roar_get_vol      (struct roar_connection * con, int id, struct roar_mixer_settings * mixer, int * channels); 
    3334 
    3435// filter... 
Note: See TracChangeset for help on using the changeset viewer.