mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 23:55:42 +01:00
Removed snd_pcm_drain done before setup
This commit is contained in:
parent
fe0398a0f6
commit
5e4997b682
1 changed files with 0 additions and 6 deletions
|
@ -781,8 +781,6 @@ static void set_params(void)
|
||||||
if (mmap_flag)
|
if (mmap_flag)
|
||||||
snd_pcm_munmap(handle, stream);
|
snd_pcm_munmap(handle, stream);
|
||||||
#endif
|
#endif
|
||||||
snd_pcm_drain(handle); /* to be in right state */
|
|
||||||
|
|
||||||
memset(¶ms, 0, sizeof(params));
|
memset(¶ms, 0, sizeof(params));
|
||||||
params.format = format;
|
params.format = format;
|
||||||
params.start_mode = SND_PCM_START_DATA;
|
params.start_mode = SND_PCM_START_DATA;
|
||||||
|
@ -1570,7 +1568,6 @@ static void playback(char *name)
|
||||||
ssize_t dtawave;
|
ssize_t dtawave;
|
||||||
|
|
||||||
count = calc_count();
|
count = calc_count();
|
||||||
snd_pcm_drain(handle);
|
|
||||||
if (!name || !strcmp(name, "-")) {
|
if (!name || !strcmp(name, "-")) {
|
||||||
fd = 0;
|
fd = 0;
|
||||||
name = "stdin";
|
name = "stdin";
|
||||||
|
@ -1619,7 +1616,6 @@ static void capture(char *name)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
snd_pcm_drain(handle);
|
|
||||||
if (!name || !strcmp(name, "-")) {
|
if (!name || !strcmp(name, "-")) {
|
||||||
fd = 1;
|
fd = 1;
|
||||||
name = "stdout";
|
name = "stdout";
|
||||||
|
@ -1736,7 +1732,6 @@ static void playbackv(char **names, unsigned int count)
|
||||||
for (channel = 0; channel < channels; ++channel)
|
for (channel = 0; channel < channels; ++channel)
|
||||||
fds[channel] = -1;
|
fds[channel] = -1;
|
||||||
|
|
||||||
snd_pcm_drain(handle);
|
|
||||||
if (count == 1) {
|
if (count == 1) {
|
||||||
size_t len = strlen(names[0]);
|
size_t len = strlen(names[0]);
|
||||||
char format[1024];
|
char format[1024];
|
||||||
|
@ -1791,7 +1786,6 @@ static void capturev(char **names, unsigned int count)
|
||||||
for (channel = 0; channel < channels; ++channel)
|
for (channel = 0; channel < channels; ++channel)
|
||||||
fds[channel] = -1;
|
fds[channel] = -1;
|
||||||
|
|
||||||
snd_pcm_drain(handle);
|
|
||||||
if (count == 1) {
|
if (count == 1) {
|
||||||
size_t len = strlen(names[0]);
|
size_t len = strlen(names[0]);
|
||||||
char format[1024];
|
char format[1024];
|
||||||
|
|
Loading…
Reference in a new issue