Changeset 2564:71cdf67a2a12 in roaraudio


Ignore:
Timestamp:
09/04/09 03:18:06 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

set bytes_per_sample/silence_sample correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/gstreamer0.10/roarsink.c

    r2563 r2564  
    330330  /* FIXME: this is wrong for signed ints (and the 
    331331   * audioringbuffers should do it for us anyway) */ 
    332   spec->silence_sample[0] = 0; 
    333   spec->silence_sample[1] = 0; 
    334   spec->silence_sample[2] = 0; 
    335   spec->silence_sample[3] = 0; 
     332  spec->bytes_per_sample = spec->channels * bits / 8; 
     333  memset(&(spec->silence_sample), 0, sizeof(spec->silence_sample)); 
    336334 
    337335  GST_INFO_OBJECT(roarsink, "successfully opened connection to esound server"); 
Note: See TracChangeset for help on using the changeset viewer.