Changeset 2938:9c43303646df in roaraudio for roard/streams.c


Ignore:
Timestamp:
10/16/09 22:37:12 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

moved change of volume code out to libroardsp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/streams.c

    r2840 r2938  
    991991 
    992992 if ( !streams_get_flag(id, ROAR_FLAG_HWMIXER) && !streams_get_flag(id, ROAR_FLAG_PASSMIXER) ) { 
    993   ROAR_DBG("streams_fill_mixbuffer2(*): CALL change_vol(*)..."); 
    994   if ( change_vol(outdata, info->bits, outdata, 8*outlen / info->bits, info->channels, &(ss->mixer)) == -1 ) 
     993  ROAR_DBG("streams_fill_mixbuffer2(*): CALL roar_amp_pcm(*)..."); 
     994  if ( roar_amp_pcm(outdata, info->bits, outdata, 8*outlen / info->bits, info->channels, &(ss->mixer)) == -1 ) 
    995995   return -1; 
    996996 } 
     
    15711571 
    15721572 if ( !is_vol_eq ) { 
    1573   if ( change_vol(obuf, g_sa->bits, ip, ROAR_OUTPUT_BUFFER_SAMPLES*g_sa->channels, g_sa->channels, &(ss->mixer)) == -1 ) { 
     1573  if ( roar_amp_pcm(obuf, g_sa->bits, ip, ROAR_OUTPUT_BUFFER_SAMPLES*g_sa->channels, g_sa->channels, &(ss->mixer)) == -1 ) { 
    15741574   _return(-1); 
    15751575  } 
Note: See TracChangeset for help on using the changeset viewer.