mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Added snd_pcm_playback_pause function.
This commit is contained in:
parent
0abf79838c
commit
338cf74af2
2 changed files with 12 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ int snd_pcm_record_status( void *handle, snd_pcm_record_status_t *status );
|
||||||
int snd_pcm_drain_playback( void *handle );
|
int snd_pcm_drain_playback( void *handle );
|
||||||
int snd_pcm_flush_playback( void *handle );
|
int snd_pcm_flush_playback( void *handle );
|
||||||
int snd_pcm_flush_record( void *handle );
|
int snd_pcm_flush_record( void *handle );
|
||||||
|
int snd_pcm_playback_pause( void *handle, int enable );
|
||||||
int snd_pcm_playback_time( void *handle, int enable );
|
int snd_pcm_playback_time( void *handle, int enable );
|
||||||
int snd_pcm_record_time( void *handle, int enable );
|
int snd_pcm_record_time( void *handle, int enable );
|
||||||
ssize_t snd_pcm_write( void *handle, const void *buffer, size_t size );
|
ssize_t snd_pcm_write( void *handle, const void *buffer, size_t size );
|
||||||
|
|
|
||||||
|
|
@ -219,6 +219,17 @@ int snd_pcm_flush_record( void *handle )
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int snd_pcm_playback_pause( void *handle, int enable )
|
||||||
|
{
|
||||||
|
snd_pcm_t *pcm;
|
||||||
|
|
||||||
|
pcm = (snd_pcm_t *)handle;
|
||||||
|
if ( !pcm ) return -EINVAL;
|
||||||
|
if ( ioctl( pcm -> fd, SND_PCM_IOCTL_PLAYBACK_PAUSE, &enable ) < 0 )
|
||||||
|
return -errno;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int snd_pcm_playback_time( void *handle, int enable )
|
int snd_pcm_playback_time( void *handle, int enable )
|
||||||
{
|
{
|
||||||
snd_pcm_t *pcm;
|
snd_pcm_t *pcm;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue