forked from TokTok/jvm-toxcore-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to split audio/video bit rate setter functions.
Introduced in TokTok/c-toxcore#578.
- Loading branch information
Showing
7 changed files
with
39 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/main/java/im/tox/tox4j/av/callbacks/AudioBitRateCallback.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package im.tox.tox4j.av.callbacks | ||
|
||
import im.tox.tox4j.av.data.BitRate | ||
import im.tox.tox4j.core.data.ToxFriendNumber | ||
|
||
/** | ||
* The event is triggered when the network becomes too saturated for current | ||
* bit rates at which point core suggests new bit rates. | ||
*/ | ||
trait AudioBitRateCallback[ToxCoreState] { | ||
/** | ||
* @param friendNumber The friend number of the friend for which to set the | ||
* audio bit rate. | ||
* @param audioBitRate Suggested maximum audio bit rate in Kb/sec. | ||
*/ | ||
def audioBitRate( | ||
friendNumber: ToxFriendNumber, audioBitRate: BitRate | ||
)(state: ToxCoreState): ToxCoreState = state | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters