Skip to contentSkip to conversation

usbaudio: curframesize

DISCUSSION karsten wiese 2 participants 2 messages Sep 9, 2002 – Sep 10, 2002

lore
Share & tools
lore
#0 lore raw

hi,

the curframesize member of struct snd_usb_substream seams not to be initialized to something different from 0.

thus the code sequence

subs->transfer_sched += subs->curframesize;

if (subs->transfer_sched >= runtime->period_size) {
	subs->transfer_sched -= runtime->period_size;
	break;
}

in static int prepare_capture_urb() doesn't make sense to me.
should curframesize be initialized with the minimum estimated number of frames per 1ms?
like 44 for 44100?

karsten

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

#1 lore raw

Hi Karsten,

At Tue, 10 Sep 2002 00:47:16 +0200 (CEST),

Quoted 6 lines · karsten wiese

hi,

the curframesize member of struct snd_usb_substream seams not to be initialized to something different from 0.

oops, thanks for spotting.
fixed on cvs now.

Quoted 9 lines

thus the code sequence

subs->transfer_sched += subs->curframesize;

if (subs->transfer_sched >= runtime->period_size) {
	subs->transfer_sched -= runtime->period_size;
	break;
}
Quoted 5 lines

in static int prepare_capture_urb() doesn't make sense to me.
should curframesize be initialized with the minimum estimated number of frames per 1ms?
like 44 for 44100?

this is just the size in frames of curpacksize, i.e. the urb packet size in bytes.
the non-integer packet size problem (44.1kHz) is not solved yet.

ciao,

Takashi

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390