#include <fst.h>
#endif
-#include "i18n.h"
+#include "pbd/i18n.h"
using namespace ARDOUR;
timeinfo->nanoSeconds = g_get_monotonic_time () * 1000;
- if (session) {
- framepos_t now = session->transport_frame();
+ if (plug && session) {
+ framepos_t now = plug->transport_frame();
timeinfo->samplePos = now;
timeinfo->sampleRate = session->frame_rate();
newflags |= kVstTransportRecording;
}
- if (session->transport_speed () != 0.0f) {
+ if (plug->transport_speed () != 0.0f) {
newflags |= kVstTransportPlaying;
}