Unfortunately this is also expected. Seeking mp3 files with Ecasound is limited to the mp3 frame size (usually 1152 samples per frame). This could be improved, but would require more integrated support for mp3 decoding/encoding, and due to various issues (adding extra library dependencies, licensing issues. etc), I'm not too enthusiastic about doing this.ok, please, help me with that:
#include <iostream> #include <eca-control-interface.h> int main(int argc, char *argv[]) { ECA_CONTROL_INTERFACE e; e.command("cs-add play_chainsetup"); e.command("c-add 1st_chain"); e.command("cs-set-param -z:nodb"); e.command("ai-add /home/pfructuoso/Musica/Musica_Tecno/BonGarcon.mp3"); e.command("ao-add arts"); e.command("cs-select play_chainsetup"); e.command("cs-connect"); e.command("start"); sleep(1); for (int i = 0; i<= 5; i++) { e.command("get-position"); float pos = e.last_float(); e.command("cs-set-position 100"); std::cout << "Position: " << pos << std::endl; sleep(5); } e.command("stop"); e.command("cs-select play_chainsetup"); // e.command("cs-disconnect"); // sleep(30); std::cout << "END" << std::endl; return(0); }
This archive was generated by hypermail 2.1.8 : Tue Sep 06 2005 - 20:15:07 EEST