Skip to content

Commit

Permalink
audio: keep audio_start()
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Mar 29, 2024
1 parent 7695ba3 commit 44a8ec8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/baresip.h
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,7 @@ uint64_t audio_jb_current_value(const struct audio *au);
int audio_set_bitrate(struct audio *au, uint32_t bitrate);
bool audio_rxaubuf_started(const struct audio *au);
int audio_update(struct audio *a);
int audio_start(struct audio *a);
int audio_start_source(struct audio *a, struct list *ausrcl,
struct list *aufiltl);
void audio_stop(struct audio *a);
Expand Down
16 changes: 16 additions & 0 deletions src/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,22 @@ int audio_update(struct audio *a)
}


/**
* This function simply calls audio_update() and kept for backward
* compatibility
*
* @param a Audio object
*
* @return 0 if success, otherwise errorcode
*
* @deprecated Use audio_update() instead
*/
int audio_start(struct audio *a)
{
return audio_update(a);
}


/**
* Start the audio source
*
Expand Down

0 comments on commit 44a8ec8

Please sign in to comment.