Changeset 4785 for pjproject/trunk/pjmedia/src/pjmedia/format.c
- Timestamp:
- Mar 10, 2014 9:01:18 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/format.c
r4736 r4785 25 25 26 26 27 PJ_DEF(void) pjmedia_format_init_audio( pjmedia_format *fmt,28 pj_uint32_t fmt_id,29 unsigned clock_rate,30 unsigned channel_count,31 unsigned bits_per_sample,32 unsigned frame_time_usec,33 pj_uint32_t avg_bps,34 pj_uint32_t max_bps)35 {36 fmt->id = fmt_id;37 fmt->type = PJMEDIA_TYPE_AUDIO;38 fmt->detail_type = PJMEDIA_FORMAT_DETAIL_AUDIO;39 40 fmt->det.aud.clock_rate = clock_rate;41 fmt->det.aud.channel_count = channel_count;42 fmt->det.aud.bits_per_sample = bits_per_sample;43 fmt->det.aud.frame_time_usec = frame_time_usec;44 fmt->det.aud.avg_bps = avg_bps;45 fmt->det.aud.max_bps = max_bps;46 }47 48 49 27 PJ_DEF(pjmedia_audio_format_detail*) 50 28 pjmedia_format_get_audio_format_detail(const pjmedia_format *fmt,
Note: See TracChangeset
for help on using the changeset viewer.