Changeset 1928 for trunk/libffado/libffado
- Timestamp:
- 12/04/10 04:24:26 (1 year ago)
- Files:
-
- trunk/libffado/libffado/ffado.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/libffado/ffado.h
r1498 r1928 67 67 * } 68 68 * 69 * ffado_streaming_transfer_ buffers(dev);69 * ffado_streaming_transfer_capture_buffers(dev); 70 70 * 71 71 * for(all channels) { 72 * // For both audio and MIDI channels, captured data is available 73 * // in the buffer previously set with a call to 74 * // ffado_streaming_set_capture_stream_buffer(dev, channel, buffer) 72 75 * switch (channel_type) { 73 76 * case audio: 74 * bytesread=ffado_streaming_read(audioinbuffer[channel]); 75 * byteswritten=ffado_streaming_write(audiooutbuffer[channel]); 77 * // Process incoming audio as needed 76 78 * case midi: 77 * bytesread=ffado_streaming_read(midiinbuffer[channel]); 78 * byteswritten=ffado_streaming_write(midioutbuffer[channel]); 79 * // Process incoming MIDI data as needed 79 80 * } 80 81 * } 82 * 83 * for(all channels) { 84 * // For both audio and MIDI channels, data is written to buffers 85 * // previously associated with the playback channel streams using 86 * // ffado_streaming_set_playback_stream_buffer(dev, channel, buffer) 87 * switch (channel_type) { 88 * case audio: 89 * // Set audio playback buffer contents 90 * case midi: 91 * // Set MIDI playback buffer contents 92 * } 93 * } 94 * ffado_streaming_transfer_playback_buffers(dev); 95 * 81 96 * } 82 97 * ffado_streaming_stop();
