mirror of https://github.com/mpv-player/mpv
Fix some typos in code comments
Signed-off-by: wm4 <wm4@nowhere>
This commit is contained in:
parent
7fa06e46c4
commit
fccc3d3894
|
@ -113,7 +113,7 @@ static int play(struct ao *ao, void **data, int samples, int flags)
|
||||||
// rest of the user-provided buffer with silence.
|
// rest of the user-provided buffer with silence.
|
||||||
// This basically assumes that the audio device doesn't care about underruns.
|
// This basically assumes that the audio device doesn't care about underruns.
|
||||||
// If this is called in paused mode, it will always return 0.
|
// If this is called in paused mode, it will always return 0.
|
||||||
// The caller should set out_time_us to the expected delay the last sample
|
// The caller should set out_time_us to the expected delay until the last sample
|
||||||
// reaches the speakers, in microseconds, using mp_time_us() as reference.
|
// reaches the speakers, in microseconds, using mp_time_us() as reference.
|
||||||
int ao_read_data(struct ao *ao, void **data, int samples, int64_t out_time_us)
|
int ao_read_data(struct ao *ao, void **data, int samples, int64_t out_time_us)
|
||||||
{
|
{
|
||||||
|
|
|
@ -602,7 +602,7 @@ typedef enum mpv_format {
|
||||||
* Example for writing:
|
* Example for writing:
|
||||||
*
|
*
|
||||||
* int flag = 1;
|
* int flag = 1;
|
||||||
* mpv_set_property(ctx, "property", MPV_FORMAT_STRING, &flag);
|
* mpv_set_property(ctx, "property", MPV_FORMAT_FLAG, &flag);
|
||||||
*/
|
*/
|
||||||
MPV_FORMAT_FLAG = 3,
|
MPV_FORMAT_FLAG = 3,
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -500,7 +500,7 @@ int stream_fill_buffer(stream_t *s)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read between 1..buf_size bytes of data, return how much data has been read.
|
// Read between 1..buf_size bytes of data, return how much data has been read.
|
||||||
// Return 0 on EOF, error, of if buf_size was 0.
|
// Return 0 on EOF, error, or if buf_size was 0.
|
||||||
int stream_read_partial(stream_t *s, char *buf, int buf_size)
|
int stream_read_partial(stream_t *s, char *buf, int buf_size)
|
||||||
{
|
{
|
||||||
assert(s->buf_pos <= s->buf_len);
|
assert(s->buf_pos <= s->buf_len);
|
||||||
|
|
Loading…
Reference in New Issue