--- main.cpp.old 2005-08-01 11:03:37.000000000 +0200 +++ main.cpp 2005-08-01 10:49:43.000000000 +0200 @@ -355,6 +355,15 @@ fifo->Flush (); readsf->Rewind(); setSys (STATE_IDLE, R_PROCESS); + + // Georg Holzmann: + // send [opened bang( to outlet2, so that you can see, + // when the file is opened and ready to play ... + t_atom lst[2]; + SetString (lst[0], "opened"); + SetString (lst[1], "bang"); + ToOutAnything (2, GetSymbol(lst[0]), 1, lst+1); + } else { // Set state to STARTUP at begingin of open and make sure to set // it to IDLE or NOTHING after succesfully opening; @@ -428,6 +437,15 @@ varmutex.Unlock(); setSys (STATE_IDLE, R_PROCESS); fifo->Flush (); + + // Georg Holzmann: + // send [opened bang( to outlet2, so that you can see, + // when the file is opened and ready to play ... + t_atom lst[2]; + SetString (lst[0], "opened"); + SetString (lst[1], "bang"); + ToOutAnything (2, GetSymbol(lst[0]), 1, lst+1); + } else { post("Readanysf:: Couldn't initialize the file/stream!!!, sucks for you dude"); if (readsf != NULL) // safe without locking ??? @@ -526,7 +544,7 @@ if (counttick++ > outtick) { SetString (lst[0], "cache"); SetFloat (lst[1], cachemsg); - ToOutAnything (2, GetSymbol (lst[0]), 2, lst + 1); + ToOutAnything (2, GetSymbol (lst[0]), 1, lst + 1); counttick = 0; } varmutex.Unlock (); @@ -607,10 +625,10 @@ { SetString (lst[0], "length"); SetFloat (lst[1], lengthinseconds); - ToOutAnything (2, GetSymbol (lst[0]), 2, lst + 1); + ToOutAnything (2, GetSymbol (lst[0]), 1, lst + 1); SetString (lst[0], "rate"); SetFloat (lst[1], (float) samplerate); - ToOutAnything (2, GetSymbol (lst[0]), 2, lst + 1); + ToOutAnything (2, GetSymbol (lst[0]), 1, lst + 1); sendout = false; } varmutex.Unlock ();