Changeset 327 for pjproject


Ignore:
Timestamp:
Mar 17, 2006 6:00:19 PM (19 years ago)
Author:
bennylp
Message:

Fixed bug in stream.c where bits_per_sample is not set properly

Location:
pjproject/trunk/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia.h

    r318 r327  
    4141#include <pjmedia/session.h> 
    4242#include <pjmedia/sound.h> 
     43#include <pjmedia/sound_port.h> 
    4344#include <pjmedia/wave.h> 
    4445 
  • pjproject/trunk/pjmedia/src/pjmedia/stream.c

    r322 r327  
    703703 
    704704    /* Set additional info. */ 
    705     stream->port.info.bits_per_sample = 0; 
     705    stream->port.info.bits_per_sample = 16; 
    706706    stream->port.info.samples_per_frame = info->fmt.sample_rate*codec_param.ptime/1000; 
    707707    stream->port.info.bytes_per_frame = codec_param.avg_bps/8 * codec_param.ptime/1000; 
Note: See TracChangeset for help on using the changeset viewer.