2013-05-15 03:55:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
#include "looper.hxx"
|
|
|
|
|
|
|
|
#include "jack.hxx"
|
2013-05-15 05:05:36 +02:00
|
|
|
extern Jack* jack;
|
2013-05-15 03:55:51 +02:00
|
|
|
|
|
|
|
void Looper::setState(State s)
|
|
|
|
{
|
2013-05-16 02:38:11 +02:00
|
|
|
// ensure we're not setting eg PLAY_QUEUED, if we're already PLAYING
|
|
|
|
if ( static_cast<int>(s) != static_cast<int>(state) + 1)
|
2013-05-15 03:55:51 +02:00
|
|
|
{
|
2013-05-16 02:38:11 +02:00
|
|
|
cout << "new state " << s << endl;
|
|
|
|
state = s;
|
2013-05-15 03:55:51 +02:00
|
|
|
}
|
|
|
|
}
|
2013-05-16 02:38:11 +02:00
|
|
|
|