Changeset 4785 for pjproject/trunk
- Timestamp:
- Mar 10, 2014 9:01:18 AM (11 years ago)
- Location:
- pjproject/trunk/pjmedia
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/include/pjmedia/format.h
r4470 r4785 582 582 * @param max_bps Maximum bitrate. 583 583 */ 584 PJ_DECL(void) pjmedia_format_init_audio(pjmedia_format *fmt, 585 pj_uint32_t fmt_id, 586 unsigned clock_rate, 587 unsigned channel_count, 588 unsigned bits_per_sample, 589 unsigned frame_time_usec, 590 pj_uint32_t avg_bps, 591 pj_uint32_t max_bps); 584 PJ_INLINE(void) pjmedia_format_init_audio(pjmedia_format *fmt, 585 pj_uint32_t fmt_id, 586 unsigned clock_rate, 587 unsigned channel_count, 588 unsigned bits_per_sample, 589 unsigned frame_time_usec, 590 pj_uint32_t avg_bps, 591 pj_uint32_t max_bps) 592 { 593 /* This function is inlined to avoid build problem due to circular 594 * dependency, i.e: this function is part of pjmedia and is needed 595 * by pjmedia-audiodev, while pjmedia depends on pjmedia-audiodev. 596 */ 597 598 fmt->id = fmt_id; 599 fmt->type = PJMEDIA_TYPE_AUDIO; 600 fmt->detail_type = PJMEDIA_FORMAT_DETAIL_AUDIO; 601 602 fmt->det.aud.clock_rate = clock_rate; 603 fmt->det.aud.channel_count = channel_count; 604 fmt->det.aud.bits_per_sample = bits_per_sample; 605 fmt->det.aud.frame_time_usec = frame_time_usec; 606 fmt->det.aud.avg_bps = avg_bps; 607 fmt->det.aud.max_bps = max_bps; 608 } 609 592 610 593 611 /** -
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.