Lines Matching full:samples
73 int left, pos, samples; member
155 static int write_audio (AdlibState *s, int samples) in write_audio() argument
160 while (samples) { in write_audio()
163 nbytes = samples << SHIFT; in write_audio()
173 samples -= wsampl; in write_audio()
174 pos = (pos + wsampl) % s->samples; in write_audio()
189 int samples, to_play, written; in adlib_callback() local
191 samples = free >> SHIFT; in adlib_callback()
192 if (!(s->active && s->enabled) || !samples) { in adlib_callback()
196 to_play = MIN (s->left, samples); in adlib_callback()
202 samples -= written; in adlib_callback()
204 s->pos = (s->pos + written) % s->samples; in adlib_callback()
211 samples = MIN (samples, s->samples - s->pos); in adlib_callback()
212 if (!samples) { in adlib_callback()
216 YM3812UpdateOne (s->opl, s->mixbuf + s->pos, samples); in adlib_callback()
218 while (samples) { in adlib_callback()
219 written = write_audio (s, samples); in adlib_callback()
222 samples -= written; in adlib_callback()
223 s->pos = (s->pos + written) % s->samples; in adlib_callback()
226 s->left = samples; in adlib_callback()
291 s->samples = AUD_get_buffer_size_out (s->voice) >> SHIFT; in adlib_realizefn()
292 s->mixbuf = g_malloc0 (s->samples << SHIFT); in adlib_realizefn()