[linux-audio-dev] SoundBOX API revised and commented

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] SoundBOX API revised and commented
From: Abramo Bagnara (abramo_AT_alsa-project.org)
Date: Sat May 19 2001 - 17:52:19 EEST


Example of use for an application:

/* Open needed boxes */
soundbox_open
/* Let's know some details */
soundbox_query_property
soundbox_get_property
/* Set box working details */
soundbox_set_property

/* Get port handles */
soundbox_get_port

/* Let's know some details about port */
soundbox_port_query_property
soundbox_port_get_property
/* Set port working details */
soundbox_port_set_property

/* Open wanted flows */
soundbox_flow_open

/* Prepare boxes for work */
soundbox_prepare

while(!end) {
        for each input {
                soundbox_flow_wait
                soundbox_flow_begin
        }
        for each output {
                soundbox_flow_wait
                soundbox_flow_begin
        }
        /* I assume that elaboration transfer directly data from
           inputs to outputs */
        elaborate
        for each input
                soundbox_flow_commit(output, ...)
        for each output
                soundbox_flow_commit(output, ...)
}

/* Close boxes */
soundbox_close

-- 
Abramo Bagnara                       mailto:abramo_AT_alsa-project.org

Opera Unica Phone: +39.546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy

ALSA project http://www.alsa-project.org It sounds good!


soundbox.h


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sat May 19 2001 - 18:18:34 EEST