Skip to content
This repository was archived by the owner on Aug 4, 2019. It is now read-only.

Commit e2ebb58

Browse files
committed
Merge pull request #143 from Antidote-for-Tox/chuongv/updateToLatestAudio
Update to latest toxAV from mannol
2 parents 29a9582 + 5c697d9 commit e2ebb58

File tree

11 files changed

+122
-174
lines changed

11 files changed

+122
-174
lines changed

Classes/Private/Manager/Database/OCTRealmManager.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ - (void)removeChatWithAllMessages:(OCTChat *)chat
315315

316316
- (void)convertAllCallsToMessages
317317
{
318-
RLMResults *calls = [OCTCall objectsInRealm:self.realm where:nil];
318+
RLMResults *calls = [OCTCall allObjectsInRealm:self.realm];
319319

320320
DDLogInfo(@"OCTRealmManager: removing %lu calls", (unsigned long)calls.count);
321321

Classes/Private/Manager/Submanagers/OCTSubmanagerCalls.m

+7-34
Original file line numberDiff line numberDiff line change
@@ -470,40 +470,6 @@ - (void)toxAV:(OCTToxAV *)toxAV callStateChanged:(OCTToxAVCallState)state friend
470470
[self updateCall:call withState:state pausedStatus:pauseStatus];
471471
}
472472

473-
- (void)toxAV:(OCTToxAV *)toxAV audioBitRateChanged:(OCTToxAVAudioBitRate)bitrate stable:(BOOL)stable friendNumber:(OCTToxFriendNumber)friendNumber
474-
{
475-
if (stable) {
476-
return;
477-
}
478-
479-
OCTToxAVAudioBitRate newBitrate;
480-
481-
switch (bitrate) {
482-
case OCTToxAVAudioBitRate48:
483-
newBitrate = OCTToxAVAudioBitRate32;
484-
break;
485-
case OCTToxAVAudioBitRate32:
486-
newBitrate = OCTToxAVAudioBitRate24;
487-
break;
488-
case OCTToxAVAudioBitRate24:
489-
newBitrate = OCTToxAVAudioBitRate16;
490-
break;
491-
case OCTToxAVAudioBitRate16:
492-
newBitrate = OCTToxAVAudioBitRate8;
493-
break;
494-
case OCTToxAVAudioBitRate8:
495-
return;
496-
case OCTToxAVAudioBitRateDisabled:
497-
NSAssert(NO, @"We shouldn't be here!");
498-
break;
499-
}
500-
501-
[self.toxAV setAudioBitRate:newBitrate force:NO forFriend:friendNumber error:nil];
502-
}
503-
504-
- (void)toxAV:(OCTToxAV *)toxAV videoBitRateChanged:(OCTToxAVVideoBitRate)bitrate friendNumber:(OCTToxFriendNumber)friendNumber stable:(BOOL)stable
505-
{}
506-
507473
- (void) toxAV:(OCTToxAV *)toxAV
508474
receiveAudio:(OCTToxAVPCMData *)pcm
509475
sampleCount:(OCTToxAVSampleCount)sampleCount
@@ -514,6 +480,13 @@ - (void) toxAV:(OCTToxAV *)toxAV
514480
[self.audioEngine provideAudioFrames:pcm sampleCount:sampleCount channels:channels sampleRate:sampleRate fromFriend:friendNumber];
515481
}
516482

483+
- (void) toxAV:(OCTToxAV *)toxAV bitrateStatusForFriendNumber:(OCTToxFriendNumber)friendNumber
484+
audioBitRate:(OCTToxAVAudioBitRate)audioBitrate
485+
videoBitRate:(OCTToxAVVideoBitRate)videoBitrate
486+
{
487+
// TODO https://github.com/Antidote-for-Tox/objcTox/issues/88
488+
}
489+
517490
- (void) toxAV:(OCTToxAV *)toxAV
518491
receiveVideoFrameWithWidth:(OCTToxAVVideoWidth)width height:(OCTToxAVVideoHeight)height
519492
yPlane:(OCTToxAVPlaneData *)yPlane uPlane:(OCTToxAVPlaneData *)uPlane

Classes/Private/Wrapper/OCTToxAV+Private.h

+4-5
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ extern bool (*_toxav_call)(ToxAV *toxAV, uint32_t friend_number, uint32_t audio_
2727
extern bool (*_toxav_answer)(ToxAV *toxAV, uint32_t friend_number, uint32_t audio_bit_rate, uint32_t video_bit_rate, TOXAV_ERR_ANSWER *error);
2828
extern bool (*_toxav_call_control)(ToxAV *toxAV, uint32_t friend_number, TOXAV_CALL_CONTROL control, TOXAV_ERR_CALL_CONTROL *error);
2929

30-
extern bool (*_toxav_audio_bit_rate_set)(ToxAV *toxAV, uint32_t friend_number, uint32_t audio_bit_rate, bool force, TOXAV_ERR_SET_BIT_RATE *error);
31-
extern bool (*_toxav_video_bit_rate_set)(ToxAV *toxAV, uint32_t friend_number, uint32_t audio_bit_rate, bool force, TOXAV_ERR_SET_BIT_RATE *error);
30+
extern bool (*_toxav_bit_rate_set)(ToxAV *toxAV, uint32_t friend_number, int32_t audio_bit_rate,
31+
int32_t video_bit_rate, TOXAV_ERR_BIT_RATE_SET *error);
3232

3333
extern bool (*_toxav_audio_send_frame)(ToxAV *toxAV, uint32_t friend_number, const int16_t *pcm, size_t sample_count, uint8_t channels, uint32_t sampling_rate, TOXAV_ERR_SEND_FRAME *error);
3434
extern bool (*_toxav_video_send_frame)(ToxAV *toxAV, uint32_t friend_number, uint16_t width, uint16_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, TOXAV_ERR_SEND_FRAME *error);
@@ -38,8 +38,7 @@ extern bool (*_toxav_video_send_frame)(ToxAV *toxAV, uint32_t friend_number, uin
3838
*/
3939
toxav_call_cb callIncomingCallback;
4040
toxav_call_state_cb callStateCallback;
41-
toxav_audio_bit_rate_status_cb audioBitRateStatusCallback;
42-
toxav_video_bit_rate_status_cb videoBitRateStatusCallback;
41+
toxav_bit_rate_status_cb bitRateStatusCallback;
4342
toxav_audio_receive_frame_cb receiveAudioFrameCallback;
4443
toxav_video_receive_frame_cb receiveVideoFrameCallback;
4544

@@ -51,7 +50,7 @@ toxav_video_receive_frame_cb receiveVideoFrameCallback;
5150
- (BOOL)fillError:(NSError **)error withCErrorCall:(TOXAV_ERR_CALL)cError;
5251
- (BOOL)fillError:(NSError **)error withCErrorAnswer:(TOXAV_ERR_ANSWER)cError;
5352
- (BOOL)fillError:(NSError **)error withCErrorControl:(TOXAV_ERR_CALL_CONTROL)cError;
54-
- (BOOL)fillError:(NSError **)error withCErrorSetBitRate:(TOXAV_ERR_SET_BIT_RATE)cError;
53+
- (BOOL)fillError:(NSError **)error withCErrorSetBitRate:(TOXAV_ERR_BIT_RATE_SET)cError;
5554
- (BOOL)fillError:(NSError **)error withCErrorSendFrame:(TOXAV_ERR_SEND_FRAME)cError;
5655
- (NSError *)createErrorWithCode:(NSUInteger)code
5756
description:(NSString *)description

Classes/Private/Wrapper/OCTToxAV.m

+45-42
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
bool (*_toxav_answer)(ToxAV *toxAV, uint32_t friend_number, uint32_t audio_bit_rate, uint32_t video_bit_rate, TOXAV_ERR_ANSWER *error);
2828
bool (*_toxav_call_control)(ToxAV *toxAV, uint32_t friend_number, TOXAV_CALL_CONTROL control, TOXAV_ERR_CALL_CONTROL *error);
2929

30-
bool (*_toxav_audio_bit_rate_set)(ToxAV *toxAV, uint32_t friend_number, uint32_t audio_bit_rate, bool force, TOXAV_ERR_SET_BIT_RATE *error);
31-
bool (*_toxav_video_bit_rate_set)(ToxAV *toxAV, uint32_t friend_number, uint32_t audio_bit_rate, bool force, TOXAV_ERR_SET_BIT_RATE *error);
30+
bool (*_toxav_bit_rate_set)(ToxAV *toxAV, uint32_t friend_number, int32_t audio_bit_rate,
31+
int32_t video_bit_rate, TOXAV_ERR_BIT_RATE_SET *error);
3232

3333
bool (*_toxav_audio_send_frame)(ToxAV *toxAV, uint32_t friend_number, const int16_t *pcm, size_t sample_count, uint8_t channels, uint32_t sampling_rate, TOXAV_ERR_SEND_FRAME *error);
3434
bool (*_toxav_video_send_frame)(ToxAV *toxAV, uint32_t friend_number, uint16_t width, uint16_t height, const uint8_t *y, const uint8_t *u, const uint8_t *v, TOXAV_ERR_SEND_FRAME *error);
@@ -216,9 +216,9 @@ - (BOOL)sendCallControl:(OCTToxAVCallControl)control toFriendNumber:(OCTToxFrien
216216

217217
- (BOOL)setAudioBitRate:(OCTToxAVAudioBitRate)bitRate force:(BOOL)force forFriend:(OCTToxFriendNumber)friendNumber error:(NSError **)error
218218
{
219-
TOXAV_ERR_SET_BIT_RATE cError;
219+
TOXAV_ERR_BIT_RATE_SET cError;
220220

221-
BOOL status = _toxav_audio_bit_rate_set(self.toxAV, friendNumber, bitRate, force, &cError);
221+
BOOL status = _toxav_bit_rate_set(self.toxAV, friendNumber, bitRate, kOCTToxAVBitRateUnchanged, &cError);
222222

223223
[self fillError:error withCErrorSetBitRate:cError];
224224

@@ -229,9 +229,9 @@ - (BOOL)setAudioBitRate:(OCTToxAVAudioBitRate)bitRate force:(BOOL)force forFrien
229229

230230
- (BOOL)setVideoBitRate:(OCTToxAVVideoBitRate)bitRate force:(BOOL)force forFriend:(OCTToxFriendNumber)friendNumber error:(NSError **)error
231231
{
232-
TOXAV_ERR_SET_BIT_RATE cError;
232+
TOXAV_ERR_BIT_RATE_SET cError;
233233

234-
BOOL status = _toxav_video_bit_rate_set(self.toxAV, friendNumber, bitRate, force, &cError);
234+
BOOL status = _toxav_bit_rate_set(self.toxAV, friendNumber, kOCTToxAVBitRateUnchanged, bitRate, &cError);
235235

236236
[self fillError:error withCErrorSetBitRate:cError];
237237

@@ -287,8 +287,7 @@ - (void)setupCFunctions
287287
_toxav_answer = toxav_answer;
288288
_toxav_call_control = toxav_call_control;
289289

290-
_toxav_audio_bit_rate_set = toxav_audio_bit_rate_set;
291-
_toxav_video_bit_rate_set = toxav_video_bit_rate_set;
290+
_toxav_bit_rate_set = toxav_bit_rate_set;
292291

293292
_toxav_audio_send_frame = toxav_audio_send_frame;
294293
_toxav_video_send_frame = toxav_video_send_frame;
@@ -298,8 +297,7 @@ - (void)setupCallbacks
298297
{
299298
toxav_callback_call(_toxAV, callIncomingCallback, (__bridge void *)(self));
300299
toxav_callback_call_state(_toxAV, callStateCallback, (__bridge void *)(self));
301-
toxav_callback_audio_bit_rate_status(_toxAV, audioBitRateStatusCallback, (__bridge void *)(self));
302-
toxav_callback_video_bit_rate_status(_toxAV, videoBitRateStatusCallback, (__bridge void *)(self));
300+
toxav_callback_bit_rate_status(_toxAV, bitRateStatusCallback, (__bridge void *)(self));
303301
toxav_callback_audio_receive_frame(_toxAV, receiveAudioFrameCallback, (__bridge void *)(self));
304302
toxav_callback_video_receive_frame(_toxAV, receiveVideoFrameCallback, (__bridge void *)(self));
305303
}
@@ -354,6 +352,10 @@ - (BOOL)fillError:(NSError **)error withCErrorCall:(TOXAV_ERR_CALL)cError
354352
code = OCTToxAVErrorCallMalloc;
355353
failureReason = @"A resource allocation error occured while trying to create the structures required for the call.";
356354
break;
355+
case TOXAV_ERR_CALL_SYNC:
356+
code = OCTToxAVErrorCallSync;
357+
failureReason = @"Synchronization error occurred.";
358+
break;
357359
case TOXAV_ERR_CALL_FRIEND_NOT_FOUND:
358360
code = OCTToxAVErrorCallFriendNotFound;
359361
failureReason = @"The friend number did not designate a valid friend.";
@@ -391,6 +393,9 @@ - (BOOL)fillError:(NSError **)error withCErrorAnswer:(TOXAV_ERR_ANSWER)cError
391393
case TOXAV_ERR_ANSWER_OK:
392394
NSAssert(NO, @"We shouldn't be here!");
393395
break;
396+
case TOXAV_ERR_ANSWER_SYNC:
397+
code = OCTToxAVErrorAnswerSync;
398+
break;
394399
case TOXAV_ERR_ANSWER_CODEC_INITIALIZATION:
395400
code = OCTToxAVErrorAnswerCodecInitialization;
396401
break;
@@ -424,6 +429,10 @@ - (BOOL)fillError:(NSError **)error withCErrorControl:(TOXAV_ERR_CALL_CONTROL)cE
424429
case TOXAV_ERR_CALL_CONTROL_OK:
425430
NSAssert(NO, @"We shouldn't be here!");
426431
break;
432+
case TOXAV_ERR_CALL_CONTROL_SYNC:
433+
code = OCTToxAVErrorControlSync;
434+
failureReason = @"Synchronization error occurred.";
435+
break;
427436
case TOXAV_ERR_CALL_CONTROL_FRIEND_NOT_FOUND:
428437
code = OCTToxAVErrorControlFriendNotFound;
429438
failureReason = @"The friend number passed did not designate a valid friend.";
@@ -443,9 +452,9 @@ - (BOOL)fillError:(NSError **)error withCErrorControl:(TOXAV_ERR_CALL_CONTROL)cE
443452
return YES;
444453
}
445454

446-
- (BOOL)fillError:(NSError **)error withCErrorSetBitRate:(TOXAV_ERR_SET_BIT_RATE)cError
455+
- (BOOL)fillError:(NSError **)error withCErrorSetBitRate:(TOXAV_ERR_BIT_RATE_SET)cError
447456
{
448-
if (! error || (cError == TOXAV_ERR_SET_BIT_RATE_OK)) {
457+
if (! error || (cError == TOXAV_ERR_BIT_RATE_SET_OK)) {
449458
return NO;
450459
}
451460

@@ -454,18 +463,26 @@ - (BOOL)fillError:(NSError **)error withCErrorSetBitRate:(TOXAV_ERR_SET_BIT_RATE
454463
NSString *failureReason = nil;
455464

456465
switch (cError) {
457-
case TOXAV_ERR_SET_BIT_RATE_OK:
466+
case TOXAV_ERR_BIT_RATE_SET_OK:
458467
NSAssert(NO, @"We shouldn't be here!");
459468
break;
460-
case TOXAV_ERR_SET_BIT_RATE_INVALID:
461-
code = OCTToxAVErrorSetBitRateInvalid;
462-
failureReason = @"The bit rate passed was not one of the supported values.";
469+
case TOXAV_ERR_BIT_RATE_SET_SYNC:
470+
code = OCTToxAVErrorSetBitRateSync;
471+
failureReason = @"Synchronization error occurred.";
472+
break;
473+
case TOXAV_ERR_BIT_RATE_SET_INVALID_AUDIO_BIT_RATE:
474+
code = OCTToxAVErrorSetBitRateInvalidAudioBitRate;
475+
failureReason = @"The audio bit rate passed was not one of the supported values.";
463476
break;
464-
case TOXAV_ERR_SET_BIT_RATE_FRIEND_NOT_FOUND:
477+
case TOXAV_ERR_BIT_RATE_SET_INVALID_VIDEO_BIT_RATE:
478+
code = OCTToxAVErrorSetBitRateInvalidVideoBitRate;
479+
failureReason = @"The video bit rate passed was not one of the supported values.";
480+
break;
481+
case TOXAV_ERR_BIT_RATE_SET_FRIEND_NOT_FOUND:
465482
code = OCTToxAVErrorSetBitRateFriendNotFound;
466483
failureReason = @"The friend number passed did not designate a valid friend";
467484
break;
468-
case TOXAV_ERR_SET_BIT_RATE_FRIEND_NOT_IN_CALL:
485+
case TOXAV_ERR_BIT_RATE_SET_FRIEND_NOT_IN_CALL:
469486
code = OCTToxAVErrorSetBitRateFriendNotInCall;
470487
failureReason = @"This client is currently not in a call with the friend";
471488
break;
@@ -607,34 +624,20 @@ void callStateCallback(ToxAV *cToxAV,
607624
});
608625
}
609626

610-
void audioBitRateStatusCallback(ToxAV *cToxAV,
611-
uint32_t friendNumber,
612-
bool stable,
613-
uint32_t bitRate,
614-
void *userData)
615-
{
616-
OCTToxAV *toxAV = (__bridge OCTToxAV *)userData;
617-
618-
dispatch_async(dispatch_get_main_queue(), ^{
619-
DDLogCInfo(@"%@: audioBitRateStatusCallback from friend %d stable: %d bitRate: %d", toxAV, friendNumber, stable, bitRate);
620-
if ([toxAV.delegate respondsToSelector:@selector(toxAV:audioBitRateChanged:stable:friendNumber:)]) {
621-
[toxAV.delegate toxAV:toxAV audioBitRateChanged:bitRate stable:stable friendNumber:friendNumber];
622-
}
623-
});
624-
}
625-
626-
void videoBitRateStatusCallback(ToxAV *cToxAV,
627-
uint32_t friendNumber,
628-
bool stable,
629-
uint32_t bitRate,
630-
void *userData)
627+
void bitRateStatusCallback(ToxAV *cToxAV,
628+
uint32_t friendNumber,
629+
uint32_t audio_bit_rate,
630+
uint32_t video_bit_rate,
631+
void *userData)
631632
{
632633
OCTToxAV *toxAV = (__bridge OCTToxAV *)userData;
633634

634635
dispatch_async(dispatch_get_main_queue(), ^{
635-
DDLogCInfo(@"%@: videoBitRateStatusCallback from friend %d stable: %d bitRate: %d", toxAV, friendNumber, stable, bitRate);
636-
if ([toxAV.delegate respondsToSelector:@selector(toxAV:videoBitRateChanged:friendNumber:stable:)]) {
637-
[toxAV.delegate toxAV:toxAV videoBitRateChanged:bitRate friendNumber:friendNumber stable:stable];
636+
DDLogCInfo(@"%@: bitRateStatusCallback from friend %d audioBitRate: %d videoBitRate: %d", toxAV, friendNumber, audio_bit_rate, video_bit_rate);
637+
if ([toxAV.delegate respondsToSelector:@selector(toxAV:bitrateStatusForFriendNumber:audioBitRate:videoBitRate:)]) {
638+
[toxAV.delegate toxAV:toxAV bitrateStatusForFriendNumber:friendNumber
639+
audioBitRate:audio_bit_rate
640+
videoBitRate:video_bit_rate];
638641
}
639642
});
640643
}

Classes/Private/Wrapper/OCTToxAVConstants.m

+1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
#import "OCTToxAVConstants.h"
1010

1111
const OCTToxAVVideoBitRate kOCTToxAVVideoBitRateDisable = 0;
12+
const uint32_t kOCTToxAVBitRateUnchanged = -1;
1213

1314
NSString *const kOCTToxAVErrorDomain = @"me.dvor.objcTox.ErrorDomain";

Classes/Public/Wrapper/OCTToxAVConstants.h

+28-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ typedef const uint8_t OCTToxAVPlaneData;
2020
typedef const int32_t OCTToxAVStrideData;
2121

2222
extern const OCTToxAVVideoBitRate kOCTToxAVVideoBitRateDisable;
23+
extern const uint32_t kOCTToxAVBitRateUnchanged;
2324

2425
extern NSString *const kOCTToxAVErrorDomain;
2526

@@ -112,6 +113,11 @@ typedef NS_ENUM(NSInteger, OCTToxAVErrorCall) {
112113
*/
113114
OCTToxAVErrorCallMalloc,
114115

116+
/**
117+
* Synchronization error occurred.
118+
*/
119+
OCTToxAVErrorCallSync,
120+
115121
/**
116122
* The friend number did not designate a valid friend.
117123
*/
@@ -140,6 +146,11 @@ typedef NS_ENUM(NSInteger, OCTToxAVErrorCall) {
140146
typedef NS_ENUM(NSInteger, OCTToxAVErrorAnswer) {
141147
OCTToxAVErrorAnswerUnknown,
142148

149+
/**
150+
* Synchronization error occurred.
151+
*/
152+
OCTToxAVErrorAnswerSync,
153+
143154
/**
144155
* Failed to initialize codecs for call session. Note that codec initiation
145156
* will fail if there is no receive callback registered for either audio or
@@ -170,6 +181,11 @@ typedef NS_ENUM(NSInteger, OCTToxAVErrorAnswer) {
170181
typedef NS_ENUM(NSInteger, OCTToxErrorCallControl) {
171182
OCTToxAVErrorControlUnknown,
172183

184+
/**
185+
* Synchronization error occurred.
186+
*/
187+
OCTToxAVErrorControlSync,
188+
173189
/**
174190
* The friend number passed did not designate a valid friend.
175191
*/
@@ -196,9 +212,19 @@ typedef NS_ENUM(NSInteger, OCTToxAVErrorSetBitRate) {
196212
OCTToxAVErrorSetBitRateUnknown,
197213

198214
/**
199-
* The bit rate passed was not one of the supported values.
215+
* Synchronization error occured.
216+
*/
217+
OCTToxAVErrorSetBitRateSync,
218+
219+
/**
220+
* The audio bit rate passed was not one of the supported values.
221+
*/
222+
OCTToxAVErrorSetBitRateInvalidAudioBitRate,
223+
224+
/**
225+
* The video bit rate passed was not one of the supported values.
200226
*/
201-
OCTToxAVErrorSetBitRateInvalid,
227+
OCTToxAVErrorSetBitRateInvalidVideoBitRate,
202228

203229
/**
204230
* The friend number passed did not designate a valid friend.

Classes/Public/Wrapper/OCTToxAVDelegate.h

+9-23
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,16 @@
3636
- (void)toxAV:(OCTToxAV *)toxAV callStateChanged:(OCTToxAVCallState)state friendNumber:(OCTToxFriendNumber)friendNumber;
3737

3838
/**
39-
* Audio bitrate has changed.
40-
* @param bitrate The bitrate in Kb/sec.
41-
* @param stable Is the stream stable enough to keep the bit rate.
42-
* Upon successful, non forceful, bit rate change, this is set to
43-
* true and 'bit_rate' is set to new bit rate.
44-
* The stable is set to false with bit_rate set to the unstable
45-
* bit rate when either current stream is unstable with said bit rate
46-
* or the non forceful change failed.
47-
* @param friendNumber Friend number of appropriate friend.
39+
* The event is triggered when the network becomes too saturated for
40+
* current bit rates at which point core suggests new bit rates.
41+
* @param friendNumber The friend number of the friend for which to set the
42+
* bit rate.
43+
* @param audio_bit_rate Suggested maximum audio bit rate in Kb/sec.
44+
* @param video_bit_rate Suggested maximum video bit rate in Kb/sec.
4845
*/
49-
- (void)toxAV:(OCTToxAV *)toxAV audioBitRateChanged:(OCTToxAVAudioBitRate)bitrate stable:(BOOL)stable friendNumber:(OCTToxFriendNumber)friendNumber;
50-
51-
/**
52-
* Video bitrate has changed.
53-
* @param bitrate The bitrate in Kb/sec.
54-
* @param stable Is the stream stable enough to keep the bit rate.
55-
* Upon successful, non forceful, bit rate change, this is set to
56-
* true and 'bit_rate' is set to new bit rate.
57-
* The stable is set to false with bit_rate set to the unstable
58-
* bit rate when either current stream is unstable with said bit rate
59-
* or the non forceful change failed.
60-
* @param friendNumber Friend number of appropriate friend.
61-
*/
62-
- (void)toxAV:(OCTToxAV *)toxAV videoBitRateChanged:(OCTToxAVVideoBitRate)bitrate friendNumber:(OCTToxFriendNumber)friendNumber stable:(BOOL)stable;
46+
- (void) toxAV:(OCTToxAV *)toxAV bitrateStatusForFriendNumber:(OCTToxFriendNumber)friendNumber
47+
audioBitRate:(OCTToxAVAudioBitRate)audioBitrate
48+
videoBitRate:(OCTToxAVVideoBitRate)videoBitrate;
6349

6450
/**
6551
* Received audio frame from friend.

Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ source 'https://github.com/CocoaPods/Specs.git'
55
inhibit_all_warnings!
66

77
def common_pods
8-
pod 'toxcore', :podspec => 'https://raw.githubusercontent.com/Antidote-for-Tox/toxcore/0.0.0-641b0f-new-av-2/toxcore.podspec'
8+
pod 'toxcore', :podspec => 'https://raw.githubusercontent.com/Antidote-for-Tox/toxcore/0.0.0-63a82-new-av-3/toxcore.podspec'
99
pod 'CocoaLumberjack', '~> 1.9.2'
1010
pod 'Realm', '0.95.0'
1111
pod 'TPCircularBuffer', '~> 0.0.1'

0 commit comments

Comments
 (0)