Examples of AudioSampleEntry


Examples of com.coremedia.iso.boxes.sampleentry.AudioSampleEntry

           // Get the sample information
           SampleTableBox samples = track.getSampleTableBox();
           SampleDescriptionBox sampleDesc = samples.getSampleDescriptionBox();
           if (sampleDesc != null) {
              // Look for the first Audio Sample, if present
              AudioSampleEntry sample = getOrNull(sampleDesc, AudioSampleEntry.class);
              if (sample != null) {
                 XMPDM.ChannelTypePropertyConverter.convertAndSet(metadata, sample.getChannelCount());
                 //metadata.set(XMPDM.AUDIO_SAMPLE_TYPE, sample.getSampleSize());    // TODO Num -> Type mapping
                 metadata.set(XMPDM.AUDIO_SAMPLE_RATE, (int)sample.getSampleRate());
                 //metadata.set(XMPDM.AUDIO_, sample.getSamplesPerPacket());
                 //metadata.set(XMPDM.AUDIO_, sample.getBytesPerSample());
              }
           }
        }
View Full Code Here

Examples of com.coremedia.iso.boxes.sampleentry.AudioSampleEntry

           // Get the sample information
           SampleTableBox samples = track.getSampleTableBox();
           SampleDescriptionBox sampleDesc = samples.getSampleDescriptionBox();
           if (sampleDesc != null) {
              // Look for the first Audio Sample, if present
              AudioSampleEntry sample = getOrNull(sampleDesc, AudioSampleEntry.class);
              if (sample != null) {
                 XMPDM.ChannelTypePropertyConverter.convertAndSet(metadata, sample.getChannelCount());
                 //metadata.set(XMPDM.AUDIO_SAMPLE_TYPE, sample.getSampleSize());    // TODO Num -> Type mapping
                 metadata.set(XMPDM.AUDIO_SAMPLE_RATE, (int)sample.getSampleRate());
                 //metadata.set(XMPDM.AUDIO_, sample.getSamplesPerPacket());
                 //metadata.set(XMPDM.AUDIO_, sample.getBytesPerSample());
              }
           }
        }
View Full Code Here

Examples of com.coremedia.iso.boxes.sampleentry.AudioSampleEntry

               // Get the sample information
               SampleTableBox samples = track.getSampleTableBox();
               SampleDescriptionBox sampleDesc = samples.getSampleDescriptionBox();
               if (sampleDesc != null) {
                  // Look for the first Audio Sample, if present
                  AudioSampleEntry sample = getOrNull(sampleDesc, AudioSampleEntry.class);
                  if (sample != null) {
                     XMPDM.ChannelTypePropertyConverter.convertAndSet(metadata, sample.getChannelCount());
                     //metadata.set(XMPDM.AUDIO_SAMPLE_TYPE, sample.getSampleSize());    // TODO Num -> Type mapping
                     metadata.set(XMPDM.AUDIO_SAMPLE_RATE, (int)sample.getSampleRate());
                     //metadata.set(XMPDM.AUDIO_, sample.getSamplesPerPacket());
                     //metadata.set(XMPDM.AUDIO_, sample.getBytesPerSample());
                  }
               }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.