Lines Matching refs:voice
261 ms->voices = kmem_zalloc(ms->nvoice * sizeof(struct voice),
280 midisyn_freevoice(midisyn *ms, int voice)
287 ms->voices[voice].inuse = 0;
298 /* Find a free voice, or if no free voice is found the oldest. */
327 midisyn_attackv_vel(midisyn *ms, uint_fast16_t voice, midipitch_t mp,
333 ms->voices[voice].velcB = midisyn_vol2cB((uint_fast16_t)vel << 7);
334 ms->mets->attackv(ms, voice, mp, level_cB + ms->voices[voice].velcB);
348 int voice = 0; /* initialize to keep gcc quiet */
360 * for a device that leaves voice allocation to us--and that's
361 * all of 'em at the moment--the voice and release velocity
367 voice = midisyn_findvoice(ms, chan, buf[1]);
368 if (voice >= 0) {
369 fs->releasev(ms, voice, buf[2]);
370 midisyn_freevoice(ms, voice);
382 voice = fs->allocv(ms, chan, buf[1]);
383 ms->voices[voice].velcB = 0; /* assume driver handles vel */
384 fs->attackv_vel(ms, voice,
392 * voice allocation, find the voice that corresponds to this
393 * chan/note and define a method that passes the voice and
397 * find the right voice on its own. Be sure that whatever is
411 * distinct method, can use KEY_PRESSURE method for each voice
623 struct voice *vp, *_end_##vp; \