com.groupdocs.metadata.core

Interfaces

Classes

Enums

Exceptions

com.groupdocs.metadata.core

Class WavRootPackage

  • All Implemented Interfaces:
    IXmp, Iterable<MetadataProperty>


    public class WavRootPackage
    extends RootMetadataPackage
    implements IXmp

    Represents the root package allowing working with metadata in a WAV audio.

    This code sample shows how to extract technical audio information from a WAV file.

    
     try (Metadata metadata = new Metadata(Constants.InputWav)) {
         WavRootPackage root = metadata.getRootPackageGeneric();
         if (root.getWavPackage() != null) {
             System.out.println(root.getWavPackage().getAudioFormat());
             System.out.println(root.getWavPackage().getBitsPerSample());
             System.out.println(root.getWavPackage().getBlockAlign());
             System.out.println(root.getWavPackage().getByteRate());
             System.out.println(root.getWavPackage().getNumberOfChannels());
             System.out.println(root.getWavPackage().getSampleRate());
         }
     }
     
    • Method Detail

      • getWavPackage

        public final WavPackage getWavPackage()

        Gets the WAV native metadata package.

        Returns:
        The WAV native metadata package.
      • getRiffInfoPackage

        public final RiffInfoPackage getRiffInfoPackage()

        Gets the package containing RIFF Info tags.

        Returns:
        The package containing RIFF Info tags.