Re: [ecasound] jack and ao-remove

From: Pedro Antonio Fructuoso Merino <pfructuoso@email-addr-hidden>
Date: Wed Aug 17 2005 - 15:59:18 EEST
Kai Vehmanen escribió:
Yeps, that was a clear bug, fixed now in CVS (and will be in 2.4.3). Thanks for the detailed bug report!
At 9:00 (Spain/Madrid time) i got cvs code. Now i haven`t this bug, good job Kai :P, but (there`s always a but) now i have a new bug:
    # ecasound -i song.mp3 -o jack_auto,alsa_pcm -c
    *******************************************************************************
    *
    *        ecasound v2.4.3-cvs (C) 1997-2005 Kai Vehmanen and others    
    *******************************************************************************
    *
    - [ Session created ] ---------------------------------------------------------
    -
    - [ Chainsetup created (cmdline) ] --------------------------------------------
    -
    ecasound ('h' for help)> cs-connect
    - [ Connecting chainsetup ] ---------------------------------------------------
    -
    (eca-chainsetup) 'rt' buffering mode selected.
    (eca-chainsetup) Audio object 
    ... "/var/samba/musica/Musica_Tecno/BonGarcon.mp3", mode "read".
    (audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
    (eca-chainsetup) Audio object "jack_auto", mode "write".
    (audio-io) Format: f32_le, channels 2, srate 44100, noninterleaved.
    - [ Chainsetup connected ] ----------------------------------------------------
    -
    (eca-control-objects) Connected chainsetup: "command-line-setup".
    ecasound ('h' for help)> start
    - [ Controller/Processing started ] -------------------------------------------
    -
    ecasound ('h' for help)> - [ Engine init - Driver start ] ---------------------
    --------------------------
    (eca-engine) Using realtime-scheduling (SCHED_FIFO).
    (eca-engine) Prefilling i/o buffers.
    (eca-engine) Using realtime-scheduling (SCHED_FIFO).
    (eca-engine) Prefilling i/o buffers.
    (eca-engine) Using realtime-scheduling (SCHED_FIFO).
    (eca-engine) Prefilling i/o buffers.
    stop
    - [ Controller/Processing stopped ] -------------------------------------------
    -
    ecasound ('h' for help)> cs-disconnect
    - [ Engine exiting ] ----------------------------------------------------------
    -
    (eca-control-objects) Disconnecting chainsetup: "command-line-setup".
    (audioio_jack_manager) Connection closed!
    - [ Chainsetup disconnected ] -------------------------------------------------
    -
    ecasound ('h' for help)> q
    ---
    ecasound: Exiting...
    #

Ok, all work well... go to my "project.cpp":
    int main(int argc, char *argv[])
    {
        ECA_CONTROL_INTERFACE e;
        e.command("cs-add play_chainsetup");
        e.command("c-add 1st_chain");
        e.command("ai-add /home/pfructuoso/Musica/Musica_Tecno/BonGarcon.mp3");
        e.command("ao-add jack_auto,alsa_pcm");
        e.command("cs-select play_chainsetup");
        e.command("cs-connect");
        e.command("start");
        sleep(5);
        e.command("stop");
        e.command("cs-select play_chainsetup");
        e.command("cs-disconnect") 
        std::cout << "FIN" << std::endl;
    
        return(0);
    }

compile... all well... try execute it:

    # ECASOUND=ecasound
    # projecto 
    (ecasoundc_sa) Error='read() error', cmd='cs-disconnect' last_error='' cmd_cnt=9 last_cnt=8.
    ***********************************************************************
    * Message from libecasoundc:
    * 
    * Connection to the processing engine was lost. Check that ecasound 
    * is correctly installed. Also make sure that ecasound is either 
    * in some directory listed in PATH, or the environment variable
    * 'ECASOUND' contains the path to a working ecasound executable.
    ***********************************************************************
    
    FIN
UPSSS!!! Something had happen... I can listen the music without problem. Try changing my code for:
        e.command("cs-select play_chainsetup");
        e.command("cs-connect");
        e.command("start");
        sleep(5);
        e.command("stop");
        e.command("cs-select play_chainsetup");
        //     e.command("cs-disconnect");
and all work well.
Now i go to test the others thinks that you had said me.
Thx&regards

------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Ecasound-list mailing list Ecasound-list@email-addr-hidden https://lists.sourceforge.net/lists/listinfo/ecasound-list Received on Wed Aug 17 16:15:09 2005

This archive was generated by hypermail 2.1.8 : Wed Aug 17 2005 - 16:15:10 EEST