[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Linphone-users] Force to use specific audio format
From: |
Deroo Stijn |
Subject: |
[Linphone-users] Force to use specific audio format |
Date: |
Thu, 31 Mar 2016 14:53:53 +0000 |
Hi,
I want linphone to force to only use one audio format, therefore I create this
audio payloadtype and set this as codec list to the linphone_core object (see
below).
The list is ok, meaning it just contains this single audio format, but when the
invite is called, other audio formats are in the sdp.
Why doesn't linphone take this list which is set by doing
linphone_core_set_audio_codecs??
int main()
{
LinphoneCoreVTable vtable={0};
LinphoneCore *lc = linphone_core_new(&vtable, NULL, NULL, NULL);
const MSList *codecs;
const MSList *list;
const char* mimetype = string("TLV16").c_str();
PayloadType *payloadtype = new PayloadType();
LinphoneCall *call = NULL;
payloadtype->type = 0;
payloadtype->clock_rate = 32000;
payloadtype->bits_per_sample = 0x10;
payloadtype->pattern_length = 2;
payloadtype->normal_bitrate = 512000;
payloadtype->mime_type = (char*)mimetype;
payloadtype->channels = 1;
codecs = ms_list_append(NULL, (void*)payloadtype);
linphone_core_set_audio_codecs(lc, (_MSList*)codecs);
linphone_core_enable_logs(NULL);
linphone_core_invite(lc, "address@hidden");
}
Kind regards,
Stijn.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Linphone-users] Force to use specific audio format,
Deroo Stijn <=