Changeset 5289:ddb3677af4d0 in roaraudio for libroar/vio_stream.c


Ignore:
Timestamp:
11/22/11 14:47:44 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

use support to set mixer ID up at least one API layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio_stream.c

    r5278 r5289  
    9494} 
    9595 
    96 int     roar_vio_simple_stream (struct roar_vio_calls * calls, int rate, int channels, int bits, int codec, 
    97                                                                const char * server, int dir, const char * name) { 
     96int     roar_vio_simple_stream (struct roar_vio_calls * calls, 
     97                                uint32_t rate, uint32_t channels, uint32_t bits, uint32_t codec, 
     98                                const char * server, int dir, const char * name, int mixer) { 
    9899 struct roar_connection * con = NULL; 
    99100 struct roar_stream       stream; 
     
    121122 } 
    122123 
    123  if ( roar_stream_connect(con, &stream, dir, -1) == -1 ) { 
     124 if ( roar_stream_connect(con, &stream, dir, mixer) == -1 ) { 
    124125  err = roar_error; 
    125126  roar_disconnect(con); 
     
    159160                                        struct roar_connection * con, 
    160161                                        struct roar_stream * s, 
    161                                         int rate, int channels, int bits, int codec, int dir) { 
     162                                        uint32_t rate, uint32_t channels, uint32_t bits, uint32_t codec, 
     163                                        int dir, int mixer) { 
    162164 struct roar_stream stream; 
    163165 int fh; 
     
    174176 
    175177 roar_libroar_nowarn(); 
    176  if ( (fh = roar_simple_new_stream_obj(con, s, rate, channels, bits, codec, dir)) == -1 ) { 
     178 if ( (fh = roar_simple_new_stream_obj(con, s, rate, channels, bits, codec, dir, mixer)) == -1 ) { 
    177179  roar_libroar_warn(); 
    178180  ROAR_DBG("roar_vio_simple_new_stream_obj(*) = -1"); 
Note: See TracChangeset for help on using the changeset viewer.