// constructor public managementGUI(eyeMusic2 myEyeMusic, wavCreator myWavCreator, eyeMusicStatistics2 statisticsObj, eyeMusicModel model) { _myEyeMusic = myEyeMusic; _myWavCreator = myWavCreator; _myStatisticsObj = statisticsObj; _model = model; }
// constructor public eyeMusic2(string mapFile, eyeMusicModel eyeMusicModel) { heb = new eyemusic45.Business.languages(mapFile, false); model = eyeMusicModel; _mapFile = mapFile; _myStatisticsObj = new eyeMusicStatistics2(this); _myWavCreator = new wavCreator(this, _myStatisticsObj, mapFile); _myManager = new managementGUI(this, _myWavCreator, _myStatisticsObj, model); _myZoomScreen = new ZoomScreen(this, _myManager, _myWavCreator); _letterFolder = "\\HebrewLettersExperiment\\02-Bold font\\"; _myVolume = Loud; _answer = ""; createDirectories(); model.theUri = "/EM/Out/Out.wav"; MyInputType = InputType.Training; _myManager.startSession(); }
// constructor public wavCreator(eyeMusic2 myEyeMusic, eyeMusicStatistics2 statisticsObj, string fileMap) { MyFileMap = fileMap; _myEyeMusic = myEyeMusic; _myStatisticsObj = statisticsObj; _ovalMapping = new Dictionary <string, float[, ]>(); _ovalMappingBitmap = new Dictionary <string, Bitmap>(); _ovalWavFiles = new List <List <Uri> >(); _player = new MediaPlayer(); _ovalPlayer = new MediaPlayer(); _cueTypeFileName = "Sounds\\beep.wav"; _scanHeight = _numTotalFiles / TotalColors; _ovalSemaphore = new System.Threading.Semaphore(1, 1); // same as _openSemaphore but for oval _semaphore = new System.Threading.Semaphore(1, 1); if (_samplesArray == null && !IAmIn) { IAmIn = true; allocateArray(); loadSamples(); } }