DEPARTMENT OF COMPUTING

Display Meta Data

Introduction

This task will add a command to the instrument designer program that you have already created in the assignments. This command will display the meta data configured in the audio track and the WAV file objects that are stored in the application data object.

The additional command is listed in this table.

Command Prefixable? Function Description
display-audio-track-and-wav-file-meta-data no display_audio_track_and_wav_file_meta_data Display meta data configured in the audio track and WAV file.

Example Usage

This is an example to see the command in use. The ... in the menu output are not literal. They are replacing irrelevant information.

$ ./program-instrument-designer/instrument_designer 
Choice? menu
Options are:
  ...
  display-audio-track-and-wav-file-meta-data - Display meta data configured in the audio track and WAV file.
  ...

Choice? configure-audio-track-and-wav-file
Samples/Second: 1234
Seconds: 1.234
Bits/Sample[8,16,24,32]: 16
Choice? display-audio-track-and-wav-file-meta-data
Audio track Samples/Second: 1234
Audio track Seconds: 1.234
WAV file Samples/Second: 1234
WAV file Bits/Sample: 16
Choice? quit

Programming Requirements

These files already exist from the homework. Add to them to complete this task.

Update library-commands/instrument_designer_aux.{h,cpp}

Functions:

Grading Instructions

To receive credit for this task:

Last Updated 03/18/2025