audioinfo
Gets information about the given audio file using functions defined in the Audio library.
Syntax
R = audio(filename)
Inputs
- filename
 - Audio file name. Currently, only .wav format files are supported.
 
Outputs
- R
 - Struct containing information about the given audio file 
            filename. R contains the
            following fields: 
            
- Album:
 - Name of the album, if available.
 - Artist:
 - Name of the artist, if available.
 - AudioFormat:
 - Audio format type. Values can be 1-PCM, 3-IEEE float, etc.
 - BitRate:
 - Number of bits per sample.
 - ByteRate:
 - Bytes per second.
 - Comments:
 - Comments in the audio file, if available.
 - CompressionMethod:
 - Method of compression based on the audio format.
 - Copyright:
 - Copyright information if available.
 - CreationDate:
 - Date when the audio file was created, if available.
 - Duration:
 - Duration of the audio in seconds.
 - Filename:
 - Full path of the audio file filename.
 - Filesize:
 - Size of the audio file filename in bytes.
 - Genre:
 - Genre of the content, if available.
 - Keywords:
 - Keywords for the audio file filename, if available.
 - NumChannels:
 - Number of channels in the audio file filename. A value of 1 indicates mono and a value of 2 indicates stereo.
 - SampleFrameSize:
 - Sample frame size.
 - SampleRate:
 - Samples(blocks) per second
 - Software:
 - Software used to create the audio file, if available.
 - Source:
 - Source that supplied the original name of the audio file, if available.
 - Subject:
 - Subject, if available.
 - Title:
 - Title of the audio track.
 - TotalSamples:
 - Total number of samples in the audio file filename.
 - TrackNumber:
 - Track number, if available.
 
 
Example
R = audioinfo('audio2.wav')
R = struct [
  Album: www.mfiles.co.uk
  Artist: Ludwig van Beethoven
  AudioFormat: 1
  BitRate: 16
  ByteRate: 176400
  Comments: © Music Files Ltd
  CompressionMethod: PCM
  Copyright:
  CreationDate:
  Duration: 728.086077
  Filename: C:/audio/audio2.wav
  Filesize: 128434392
  Genre: Classical
  Keywords:
  NumChannels: 2
  SampleFrameSize: 4
  SampleRate: 44100
  Software: Lavf57.83.100
  Source:
  Subject:
  Title: Symphony No.6 (1st movement)
  TotalSamples: 32108544
  TrackNumber:
]