cleanup
This commit is contained in:
parent
2d1310febf
commit
b1a0a0f7c1
|
@ -484,7 +484,7 @@ main( int argc, char*argv[] )
|
|||
ssize_t r;
|
||||
r = simpleaudio_read(sa, samples_readptr, read_nsamples);
|
||||
debug_log("simpleaudio_read(samplebuf+%ld, n=%lu) returns %ld\n",
|
||||
samples_readptr - samplebuf, samples_nvalid, r);
|
||||
samples_readptr - samplebuf, read_nsamples, r);
|
||||
if ( r < 0 ) {
|
||||
fprintf(stderr, "simpleaudio_read: error\n");
|
||||
ret = -1;
|
||||
|
|
|
@ -70,7 +70,7 @@ sa_sndfile_close( simpleaudio *sa )
|
|||
}
|
||||
|
||||
|
||||
static const struct simpleaudio_backend simpleaudio_backend_pulse = {
|
||||
static const struct simpleaudio_backend simpleaudio_backend_sndfile = {
|
||||
sa_sndfile_read,
|
||||
sa_sndfile_write,
|
||||
sa_sndfile_close,
|
||||
|
@ -110,7 +110,7 @@ simpleaudio_open_stream_sndfile(
|
|||
}
|
||||
sa->rate = sfinfo.samplerate;
|
||||
sa->channels = sfinfo.channels;
|
||||
sa->backend = &simpleaudio_backend_pulse;
|
||||
sa->backend = &simpleaudio_backend_sndfile;
|
||||
sa->backend_handle = s;
|
||||
sa->backend_framesize = sa->channels * sizeof(float);
|
||||
|
||||
|
|
Loading…
Reference in New Issue