Disk audio target was using this->hidden->mixlen before we set it.
--HG-- extra : rebase_source : 0ca3a2c97a59010e12df6a144757b6cadb4232c5
This commit is contained in:
parent
13b57b17fd
commit
fdca15860f
1 changed files with 4 additions and 4 deletions
|
@ -114,6 +114,10 @@ DISKAUD_OpenDevice(_THIS, const char *devname, int iscapture)
|
||||||
}
|
}
|
||||||
SDL_memset(this->hidden, 0, sizeof(*this->hidden));
|
SDL_memset(this->hidden, 0, sizeof(*this->hidden));
|
||||||
|
|
||||||
|
this->hidden->mixlen = this->spec.size;
|
||||||
|
this->hidden->write_delay =
|
||||||
|
(envr) ? SDL_atoi(envr) : DISKDEFAULT_WRITEDELAY;
|
||||||
|
|
||||||
/* Open the audio device */
|
/* Open the audio device */
|
||||||
this->hidden->output = SDL_RWFromFile(fname, "wb");
|
this->hidden->output = SDL_RWFromFile(fname, "wb");
|
||||||
if (this->hidden->output == NULL) {
|
if (this->hidden->output == NULL) {
|
||||||
|
@ -129,10 +133,6 @@ DISKAUD_OpenDevice(_THIS, const char *devname, int iscapture)
|
||||||
}
|
}
|
||||||
SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size);
|
SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size);
|
||||||
|
|
||||||
this->hidden->mixlen = this->spec.size;
|
|
||||||
this->hidden->write_delay =
|
|
||||||
(envr) ? SDL_atoi(envr) : DISKDEFAULT_WRITEDELAY;
|
|
||||||
|
|
||||||
#if HAVE_STDIO_H
|
#if HAVE_STDIO_H
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"WARNING: You are using the SDL disk writer audio driver!\n"
|
"WARNING: You are using the SDL disk writer audio driver!\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue