Browse Source

For Linux 2.4, USB audio : Reduced CD output buffer size to 32 kiB

ZeroThreeEight
Thomas Schmitt 14 years ago
parent
commit
cd7b4e6de4
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 3
      libburn/sector.c
  3. 3
      libburn/write.c

2
cdrskin/cdrskin_timestamp.h

@ -1 +1 @@
#define Cdrskin_timestamP "2007.05.21.185450"
#define Cdrskin_timestamP "2007.05.21.185644"

3
libburn/sector.c

@ -218,7 +218,8 @@ static unsigned char *get_sector(struct burn_write_opts *opts,
seclen += burn_subcode_length(outmode);
/* ts A61219 : opts->obs is eventually a 32k trigger for DVD */
if (out->bytes + (seclen) > BUFFER_SIZE || out->bytes == opts->obs) {
if (out->bytes + seclen > BUFFER_SIZE ||
out->bytes + seclen > opts->obs) {
int err;
err = d->write(d, d->nwa, out);
if (err == BE_CANCELLED)

3
libburn/write.c

@ -1765,6 +1765,9 @@ void burn_disc_write_sync(struct burn_write_opts *o, struct burn_disc *disc)
return;
}
/* ts A70521 : Linux 2.4 USB audio fails with 64 kiB */
o->obs = 32*1024; /* buffer flush trigger for sector.c:get_sector() */
#ifndef Libburn_precheck_write_ruleS
/* <<< covered by burn_precheck_write() */
if (o->start_byte >= 0) {

Loading…
Cancel
Save