Lines Matching defs:bytes
300 * \brief Encodes bytes to sequencer event.
302 * \param[in] buf Buffer containing bytes of a raw MIDI stream.
303 * \param[in] count Number of bytes in \a buf.
305 * \return The number of bytes consumed, or a negative error code.
307 * This function tries to use up to \a count bytes from the beginning of the
310 * set to #SND_SEQ_EVENT_NONE, and further bytes are required to complete
313 * The buffer in \a dev is used to hold any bytes of a not-yet-complete MIDI
318 * Any bytes that are not part of a valid MIDI message are silently ignored,
386 * \return 1 if a sequenver event has been completed, 0 if more bytes are
391 * \a ev; otherwise, further bytes are required to complete a message.
511 * \param[in] count Number of bytes in \a buf.
513 * \return The number of bytes written to \a buf, or a negative error code.
521 * The required buffer size for a sequencer event it as most 12 bytes, except
552 * <dt>-ENOMEM<dd>The MIDI message(s) would not fit into \a count bytes.
706 unsigned char bytes[4];
714 bytes[0] = (ev->data.control.param & 0x3f80) >> 7;
715 bytes[1] = ev->data.control.param & 0x007f;
716 bytes[2] = (ev->data.control.value & 0x3f80) >> 7;
717 bytes[3] = ev->data.control.value & 0x007f;
728 buf[idx++] = bytes[i];