Changeset 5289:ddb3677af4d0 in roaraudio for roard


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

Location:
roard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • roard/driver_roar.c

    r5162 r5289  
    2626#include "roard.h" 
    2727 
     28#define MIXER_ID -1 
     29 
    2830int driver_roar_open_vio(struct roar_vio_calls * inst, char * device, struct roar_audio_info * info, int fh, struct roar_stream_server * sstream) { 
    2931 int dir = ROAR_DIR_PLAY; 
     
    4648 } 
    4749 
    48  if ( roar_vio_simple_stream(inst, info->rate, info->channels, info->bits, info->codec, device, dir, "roard") == -1 ) { 
     50 if ( roar_vio_simple_stream(inst, info->rate, info->channels, info->bits, info->codec, device, dir, "roard", MIXER_ID) == -1 ) { 
    4951  if ( streams_get_flag(ROAR_STREAM(sstream)->id, ROAR_FLAG_AUTOCONF) ) { 
    5052   if ( roar_profile2info(info, "default") == -1 ) 
    5153    return -1; 
    5254 
    53    if ( roar_vio_simple_stream(inst, info->rate, info->channels, info->bits, info->codec, device, dir, "roard") == -1 ) { 
     55   if ( roar_vio_simple_stream(inst, info->rate, info->channels, info->bits, info->codec, device, dir, "roard", MIXER_ID) == -1 ) { 
    5456    return -1; 
    5557   } 
  • roard/sources.c

    r5278 r5289  
    463463 
    464464 if ( roar_vio_simple_stream(&(ss->vio), s->info.rate, s->info.channels, s->info.bits, s->info.codec, 
    465                              device, ROAR_DIR_MONITOR, "roard") == -1 ) 
     465                             device, ROAR_DIR_MONITOR, "roard", -1) == -1 ) 
    466466  return -1; 
    467467 
Note: See TracChangeset for help on using the changeset viewer.