コード例 #1
0
 public outputFormatAudio(int tag, int type, ref int index, bool Force035 = false) : this(Force035){
     this.componentTag = new epgAudioComponentTag(tag);
     this.streamType   = new epgAudioStreamType(type);
     Debug.Assert(this.streamType.value > 0);
     this.componentType = new epgAudioComponentType(this.streamType.GetComponentType(index));
     this.mainFlag      = new epgMainFlag(0);
     this.quority       = new epgAudioQuority(2);
     this.samplingRate  = new epgAudioSamplingRate(5);
     AudioCodeClass au = new AudioCodeClass();
     this.mainCode = new epgAudioCode(index, au);
     this.name     = new epgAudioName(au.GetName(this.mainCode.value));
     if (this.componentType.IsDualMono())
     {
         this.subCode = new epgAudioCode(index + 1, au);
         this.name.SetSubName(au.GetName(this.subCode.value));
         this.esMultiFlag = new epgAudioMultiLingul(1);
     }
     else
     {
         this.esMultiFlag = new epgAudioMultiLingul(0);
         this.subCode     = null; // new epgAudioCode(0);
     }
     // とりあえず simul group は、なし、00、01、10、FF を回してみる。
     Int32 simul = valuesOfSimulGroup[index % valuesOfSimulGroup.Count()];
     this.simulGroup = new epgAudioSimulGroup(simul);
     // return true;
 }
コード例 #2
0
ファイル: epgParts.cs プロジェクト: HirofumiSAKODA/theParser
 public epgAudioCode(Int32 v, AudioCodeClass au) : this()
 {
     this.value = au.GetCodeCycle(v);
 }