예제 #1
0
        public ManageLibrary()
        {
            InitializeComponent();
            ManageLibrary_PlaylistContentChanged(null, null);
            DataView plDataView;

            if (GlobalVars.SongsInCurrentPl != null)
            {
                plDataView = GlobalVars.SongsInCurrentPl.DefaultView;
            }
            else
            {
                plDataView = new DataView();
            }

            LstBox_Pl.ItemsSource = plDataView;
            TblAdp_Files          = new GMBAudioLibDataSetTableAdapters.FILESTableAdapter();
            DtaTbl_Files          = TblAdp_Files.GetData();

            DataView libDataView = DtaTbl_Files.DefaultView;

            LstBox_LibView.ItemsSource = libDataView;

            LibraryContentChanged  += GMBLibraryContentChangedEventHandler;
            PlaylistContentChanged += ManageLibrary_PlaylistContentChanged;
        }
예제 #2
0
        private void GMBLibraryContentChangedEventHandler(object sender, GMBEventArgs e)
        {
            TblAdp_Files = new GMBAudioLibDataSetTableAdapters.FILESTableAdapter();
            DtaTbl_Files = TblAdp_Files.GetData();
            DataView dataView = DtaTbl_Files.DefaultView;

            LstBox_LibView.ItemsSource = dataView;
            //DtaTbl_Files =
        }
예제 #3
0
        public ManageLibrary()
        {
            InitializeComponent();
            ManageLibrary_PlaylistContentChanged(null, null);
            DataView plDataView;
            if (GlobalVars.SongsInCurrentPl != null)
            {
                plDataView = GlobalVars.SongsInCurrentPl.DefaultView;
            }
            else
            {
                plDataView = new DataView();
            }

            LstBox_Pl.ItemsSource = plDataView;
            TblAdp_Files = new GMBAudioLibDataSetTableAdapters.FILESTableAdapter();
            DtaTbl_Files = TblAdp_Files.GetData();

            DataView libDataView = DtaTbl_Files.DefaultView;
            LstBox_LibView.ItemsSource = libDataView;

            LibraryContentChanged += GMBLibraryContentChangedEventHandler;
            PlaylistContentChanged += ManageLibrary_PlaylistContentChanged;
        }
예제 #4
0
        public MainWindow()
        {
            InitializeComponent();

            userChangingFilter = false;
            //CurrentPlaylist = "test";
            TblAdp_Pl      = new GMBAudioLibDataSetTableAdapters.PLAYLISTSTableAdapter();
            TblAdp_Files   = new GMBAudioLibDataSetTableAdapters.FILESTableAdapter();
            TblAdp_PlNames = new GMBAudioLibDataSetTableAdapters.PLAYLISTNAMESTableAdapter();
            TblAdp_PlCount = new GMBAudioLibDataSetTableAdapters.PLAYLISTCOUNTTableAdapter();



            DtaTbl_Files = TblAdp_Files.GetData();
            DtaTbl_Pl    = TblAdp_Pl.GetData();


            //SongsInCurrentPl =

            PlNames = TblAdp_PlNames.GetDistinctPlaylistNames();

            if (PlNames.Count > 0)
            {
                currentPl = PlNames[0].PLNAME.ToString();
            }


            //TblAdp_SongsInPl = new GMBAudioLibDataSetTableAdapters.SongsInPlaylistTableAdapter();
            //SongsInCurrentPl = TblAdp_SongsInPl.GetSongsInPlaylist(currentPl);

            //Now put these instance variables into our Global Variables.

            GlobalVars.DtaTbl_Pl        = DtaTbl_Pl;
            GlobalVars.DtaTbl_Files     = DtaTbl_Files;
            GlobalVars.CurrentPlaylist  = currentPl;
            GlobalVars.PlNames          = PlNames;
            GlobalVars.SongsInCurrentPl = SongsInCurrentPl;
            GlobalVars.TblAdp_Files     = TblAdp_Files;
            GlobalVars.TblAdp_PlNames   = TblAdp_PlNames;
            GlobalVars.TblAdp_SongsInPl = TblAdp_SongsInPl;
            GlobalVars.DtaTbl_NumberOfSongsInPlaylist = TblAdp_PlCount.GetPlayListCount(currentPl);

            audioPlayer = new GMBSimpleObj();
            audioPlayer.Init();

            //WaveformTimelineDisplayL = new WPFSoundVisualizationLib.WaveformTimeline();

            FilterCutoffFrequency = 19000.0F;
            FilterQ = 0.707F;

            //State variable initialization
            xyPadInUse = false;

            Console.Write("\n");
            Sldr_GainL.Value = 1.0;
            Sldr_GainR.Value = 1.0;
            Sldr_XFade.Value = 0.0;
            AUWrapper        = new GMBSoundPlayer(audioPlayer);
            timer            = new System.Timers.Timer(1);

            timer.Elapsed            += timer_Elapsed;
            timer.SynchronizingObject = wViewer;

            timerR                     = new System.Timers.Timer(10);
            timerR.Elapsed            += timer_ElapsedR;
            timerR.SynchronizingObject = wViewerR;

            wViewer.SamplesPerPixel = 100;
            firstRunComplete        = false;
            GMBOnPosLChangedPtr     = new InterOpEventWavePositionChangedEventHandler(GMBOnPosLChanged);
            fp = Marshal.GetFunctionPointerForDelegate(GMBOnPosLChangedPtr);
            audioPlayer.PosChangedL_RegisterCallback(fp);
            string fp_loc = "fp memory locations is: " + fp.ToString();

            System.IO.File.WriteAllText(@"C:\\Users\\Graham\\Programming\\Logs\\interopEventsLogManaged.txt", fp_loc);
            //ATLProject2Lib.GMBSimpleObj so;
            //audioPlayer.OnPosChangedL += audioPlayer_OnPosChangedL;
        }
예제 #5
0
        public MainWindow()
        {
            InitializeComponent();

            userChangingFilter = false;
            //CurrentPlaylist = "test";
            TblAdp_Pl = new GMBAudioLibDataSetTableAdapters.PLAYLISTSTableAdapter();
            TblAdp_Files = new GMBAudioLibDataSetTableAdapters.FILESTableAdapter();
            TblAdp_PlNames = new GMBAudioLibDataSetTableAdapters.PLAYLISTNAMESTableAdapter();
            TblAdp_PlCount = new GMBAudioLibDataSetTableAdapters.PLAYLISTCOUNTTableAdapter();

            DtaTbl_Files = TblAdp_Files.GetData();
            DtaTbl_Pl = TblAdp_Pl.GetData();

            //SongsInCurrentPl =

            PlNames = TblAdp_PlNames.GetDistinctPlaylistNames();

               if (PlNames.Count > 0)
               {
               currentPl = PlNames[0].PLNAME.ToString();
               }

            //TblAdp_SongsInPl = new GMBAudioLibDataSetTableAdapters.SongsInPlaylistTableAdapter();
            //SongsInCurrentPl = TblAdp_SongsInPl.GetSongsInPlaylist(currentPl);

            //Now put these instance variables into our Global Variables.

            GlobalVars.DtaTbl_Pl    = DtaTbl_Pl;
            GlobalVars.DtaTbl_Files = DtaTbl_Files;
            GlobalVars.CurrentPlaylist = currentPl;
            GlobalVars.PlNames = PlNames;
            GlobalVars.SongsInCurrentPl = SongsInCurrentPl;
            GlobalVars.TblAdp_Files = TblAdp_Files;
            GlobalVars.TblAdp_PlNames = TblAdp_PlNames;
            GlobalVars.TblAdp_SongsInPl = TblAdp_SongsInPl;
            GlobalVars.DtaTbl_NumberOfSongsInPlaylist = TblAdp_PlCount.GetPlayListCount(currentPl);

            audioPlayer = new GMBSimpleObj();
            audioPlayer.Init();

            //WaveformTimelineDisplayL = new WPFSoundVisualizationLib.WaveformTimeline();

            FilterCutoffFrequency = 19000.0F;
            FilterQ = 0.707F;

            //State variable initialization
            xyPadInUse = false;

            Console.Write("\n");
            Sldr_GainL.Value = 1.0;
            Sldr_GainR.Value = 1.0;
            Sldr_XFade.Value = 0.0;
            AUWrapper = new GMBSoundPlayer(audioPlayer);
            timer = new System.Timers.Timer(1);

            timer.Elapsed += timer_Elapsed;
            timer.SynchronizingObject = wViewer;

            timerR = new System.Timers.Timer(10);
            timerR.Elapsed += timer_ElapsedR;
            timerR.SynchronizingObject = wViewerR;

            wViewer.SamplesPerPixel = 100;
            firstRunComplete = false;
            GMBOnPosLChangedPtr = new InterOpEventWavePositionChangedEventHandler(GMBOnPosLChanged);
            fp = Marshal.GetFunctionPointerForDelegate(GMBOnPosLChangedPtr);
            audioPlayer.PosChangedL_RegisterCallback(fp);
            string fp_loc = "fp memory locations is: " + fp.ToString();
            System.IO.File.WriteAllText(@"C:\\Users\\Graham\\Programming\\Logs\\interopEventsLogManaged.txt", fp_loc);
            //ATLProject2Lib.GMBSimpleObj so;
            //audioPlayer.OnPosChangedL += audioPlayer_OnPosChangedL;
        }
예제 #6
0
        private void GMBLibraryContentChangedEventHandler(object sender, GMBEventArgs e)
        {
            TblAdp_Files = new GMBAudioLibDataSetTableAdapters.FILESTableAdapter();
            DtaTbl_Files = TblAdp_Files.GetData();
            DataView dataView = DtaTbl_Files.DefaultView;

            LstBox_LibView.ItemsSource = dataView;
            //DtaTbl_Files =
        }