about summary refs log tree commit diff stats
path: root/src/main.cpp
blob: abe662664b373529931069f764f2ab48f368b980 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

#include <fstream>

#include "global.h"
#include "tracker_config.h"
#include "tracker_frame.h"

static std::ofstream* logfile;

class TrackerApp : public wxApp {
 public:
  virtual bool OnInit() {
    logfile = new std::ofstream(GetAbsolutePath("debug.log"));
    wxLog::SetActiveTarget(new wxLogStream(logfile));

#ifndef NDEBUG
    wxLog::SetVerbose(true);
    wxLog::SetActiveTarget(new wxLogWindow(nullptr, "Debug Log"));
#endif

    GetTrackerConfig().Load();

    TrackerFrame *frame = new TrackerFrame();
    frame->Show(true);
    return true;
  }

  bool OnExceptionInMainLoop() override {
    try {
      throw;
    } catch (const std::exception& ex) {
      wxLogError(ex.what());
    }

    return false;
  }
};

wxIMPLEMENT_APP(TrackerApp);
<relationship name="markerTracks"> <destination>{b9e75c12-6c8a-404a-9800-8c0916e0c4cc}</destination> </relationship> <relationship name="groupTracks"> <destination>{7d906856-3242-462e-b50a-9bf78e01c71f}</destination> </relationship> <relationship name="timeline"> <destination>{e4b252fb-cdeb-45e4-9b46-af6905e2f962}</destination> </relationship> <relationship name="banks"> <destination>{a23d2b1c-914e-48d4-8df9-80f6edad6c28}</destination> </relationship> </object> <object class="EventMixer" id="{9ea72e2b-8398-4cc5-91d3-57f0a6698f11}"> <relationship name="masterBus"> <destination>{35e8cb8d-f400-4eef-9028-974cd2749cf1}</destination> </relationship> </object> <object class="MasterTrack" id="{8db24161-0449-48f4-b886-afb54dde047d}"> <relationship name="mixerGroup"> <destination>{35e8cb8d-f400-4eef-9028-974cd2749cf1}</destination> </relationship> </object> <object class="MixerInput" id="{753b0ec0-0350-48d0-9aca-da5b7d244300}"> <relationship name="effectChain"> <destination>{ca7998e5-22dd-489f-a8f7-025969eb8706}</destination> </relationship> <relationship name="panner"> <destination>{f18af2ec-6258-440a-95a9-f10cbe2e26d9}</destination> </relationship> <relationship name="output"> <destination>{a028aeaa-4166-48ea-881f-bb967c81e6f1}</destination> </relationship> </object> <object class="EventAutomatableProperties" id="{2e81fea1-695c-4d6c-b85c-8f949fd2ad96}"/> <object class="MarkerTrack" id="{b9e75c12-6c8a-404a-9800-8c0916e0c4cc}"/> <object class="GroupTrack" id="{7d906856-3242-462e-b50a-9bf78e01c71f}"> <relationship name="modules"> <destination>{aca51545-9374-4735-a7ab-56bd7f41d5af}</destination> </relationship> <relationship name="mixerGroup"> <destination>{21bae33a-352a-45ad-9322-aa298bafb005}</destination> </relationship> </object> <object class="Timeline" id="{e4b252fb-cdeb-45e4-9b46-af6905e2f962}"> <relationship name="modules"> <destination>{aca51545-9374-4735-a7ab-56bd7f41d5af}</destination> </relationship> </object> <object class="EventMixerMaster" id="{35e8cb8d-f400-4eef-9028-974cd2749cf1}"> <relationship name="effectChain"> <destination>{ba0b9d9a-b2f1-4e56-95ed-1f81b82e4410}</destination> </relationship> <relationship name="panner"> <destination>{ff8ef233-315d-46e1-ab83-d06a727b8f41}</destination> </relationship> <relationship name="mixer"> <destination>{9ea72e2b-8398-4cc5-91d3-57f0a6698f11}</destination> </relationship> </object> <object class="MixerBusEffectChain" id="{ca7998e5-22dd-489f-a8f7-025969eb8706}"> <relationship name="effects"> <destination>{3899767b-37bf-41fc-b32f-2c9e83f7b987}</destination> </relationship> </object> <object class="MixerBusPanner" id="{f18af2ec-6258-440a-95a9-f10cbe2e26d9}"/> <object class="SingleSound" id="{aca51545-9374-4735-a7ab-56bd7f41d5af}"> <property name="length"> <value>0.27560090702947848</value> </property> <relationship name="audioFile"> <destination>{e4ee2376-d790-4e2c-8a64-9c08953d0f04}</destination> </relationship> </object> <object class="EventMixerGroup" id="{21bae33a-352a-45ad-9322-aa298bafb005}"> <property name="volume"> <value>-14.5</value> </property> <property name="name"> <value>Audio 1</value> </property> <relationship name="effectChain"> <destination>{883828c9-5226-49e9-98f6-4258eebef55b}</destination> </relationship> <relationship name="panner"> <destination>{468091c0-d1e2-4b3d-916e-acb6eb3674f5}</destination> </relationship> <relationship name="output"> <destination>{35e8cb8d-f400-4eef-9028-974cd2749cf1}</destination> </relationship> </object> <object class="MixerBusEffectChain" id="{ba0b9d9a-b2f1-4e56-95ed-1f81b82e4410}"> <relationship name="effects"> <destination>{2af00a65-0814-4bff-9f1f-23c4dbf60ac9}</destination> <destination>{b14ea1a4-53ac-494a-a9f6-7ea6722914c5}</destination> </relationship> </object> <object class="MixerBusPanner" id="{ff8ef233-315d-46e1-ab83-d06a727b8f41}"/> <object class="MixerBusFader" id="{3899767b-37bf-41fc-b32f-2c9e83f7b987}"/> <object class="MixerBusEffectChain" id="{883828c9-5226-49e9-98f6-4258eebef55b}"> <relationship name="effects"> <destination>{93d6a568-d5b1-4f8c-ae1f-bd7049024b09}</destination> </relationship> </object> <object class="MixerBusPanner" id="{468091c0-d1e2-4b3d-916e-acb6eb3674f5}"/> <object class="MixerBusFader" id="{2af00a65-0814-4bff-9f1f-23c4dbf60ac9}"/> <object class="SpatialiserEffect" id="{b14ea1a4-53ac-494a-a9f6-7ea6722914c5}"/> <object class="MixerBusFader" id="{93d6a568-d5b1-4f8c-ae1f-bd7049024b09}"/> </objects>