Esempio n. 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;
 }
Esempio n. 2
0
        public outputFormatAudio(bool Force035 = false)
        {
            this.bForce035 = Force035;

            this.paramList     = new List <epgUnit>();
            this.tag           = new epgTag(0xc4);
            this.componentTag  = new epgAudioComponentTag(0x10);
            this.componentType = new epgAudioComponentType(3);
            this.esMultiFlag   = new epgAudioMultiLingul(0);
            this.mainFlag      = new epgMainFlag(1);
            this.quority       = new epgAudioQuority(2);
            this.samplingRate  = new epgAudioSamplingRate(5);
            this.mainCode      = new epgAudioCode(AUDIOCODE.JAPANESE);
            this.subCode       = null; // new epgAudioCode(0);
            this.name          = new epgAudioName("日本語");
            this.streamType    = new epgAudioStreamType(0x0f);
            this.simulGroup    = new epgAudioSimulGroup(-1);
        }