mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Reverted deprecated functions and added linker warning to them
This commit is contained in:
parent
bc4444b993
commit
10942aee61
1 changed files with 15 additions and 0 deletions
|
|
@ -6085,6 +6085,21 @@ snd_pcm_sframes_t snd_pcm_write_areas(snd_pcm_t *pcm, const snd_pcm_channel_area
|
|||
return xfer > 0 ? (snd_pcm_sframes_t) xfer : err;
|
||||
}
|
||||
|
||||
snd_pcm_uframes_t _snd_pcm_mmap_hw_ptr(snd_pcm_t *pcm)
|
||||
{
|
||||
return *pcm->hw.ptr;
|
||||
}
|
||||
|
||||
snd_pcm_uframes_t _snd_pcm_boundary(snd_pcm_t *pcm)
|
||||
{
|
||||
return pcm->boundary;
|
||||
}
|
||||
|
||||
#ifndef DOC_HIDDEN
|
||||
link_warning(_snd_pcm_mmap_hw_ptr, "Warning: _snd_pcm_mmap_hw_ptr() is deprecated, consider to not use this function");
|
||||
link_warning(_snd_pcm_boundary, "Warning: _snd_pcm_boundary() is deprecated, consider to use snd_pcm_sw_params_current()");
|
||||
#endif
|
||||
|
||||
static const char *names[SND_PCM_HW_PARAM_LAST_INTERVAL + 1] = {
|
||||
[SND_PCM_HW_PARAM_FORMAT] = "format",
|
||||
[SND_PCM_HW_PARAM_CHANNELS] = "channels",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue