# danog\MadelineProto\Settings\VoIP: VoIP settings.

[Back to index](../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

VoIP settings.  




## Method list:
* [`getPlaybackLookahead(): int`](#getPlaybackLookahead)
* [`setPlaybackLookahead(int<0, max> $playbackLookahead): \danog\MadelineProto\Settings\VoIP`](#setPlaybackLookahead)

## Methods:
### <a name="getPlaybackLookahead"></a> `getPlaybackLookahead(): int`

Get how far ahead of playback the files played in calls are read, in milliseconds.



### <a name="setPlaybackLookahead"></a> `setPlaybackLookahead(int<0, max> $playbackLookahead): \danog\MadelineProto\Settings\VoIP`

Set how far ahead of playback the files played in calls are read, in milliseconds.
  
The frames read ahead are kept in memory, for every call: by default (0), only the next frame is  
read ahead, to keep memory usage to a minimum. Reading further ahead avoids stuttering when the  
files are read from a slow source (like a slow URL), at the cost of about the file's bitrate  
times the lookahead of memory per call.  


Parameters:

* `$playbackLookahead`: `int<0, max>` Lookahead, in milliseconds.  


#### See also: 
* `max`




---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
