mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
stream: pa_stream_get_underflow_index: constify
This commit is contained in:
parent
883421df03
commit
c16b842ac0
2 changed files with 2 additions and 2 deletions
|
|
@ -850,7 +850,7 @@ finish:
|
|||
pa_context_unref(c);
|
||||
}
|
||||
|
||||
int64_t pa_stream_get_underflow_index(pa_stream *p) {
|
||||
int64_t pa_stream_get_underflow_index(const pa_stream *p) {
|
||||
pa_assert(p);
|
||||
return p->latest_underrun_at_index;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@ void pa_stream_set_overflow_callback(pa_stream *p, pa_stream_notify_cb_t cb, voi
|
|||
* known (e.g.\ if no underflow has occurred, or server is older than 1.0).
|
||||
* Can be used inside the underflow callback to get information about the current underflow.
|
||||
* (Only for playback streams) \since 1.0 */
|
||||
int64_t pa_stream_get_underflow_index(pa_stream *p);
|
||||
int64_t pa_stream_get_underflow_index(const pa_stream *p);
|
||||
|
||||
/** Set the callback function that is called when a buffer underflow happens. (Only for playback streams) */
|
||||
void pa_stream_set_underflow_callback(pa_stream *p, pa_stream_notify_cb_t cb, void *userdata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue