Skip to content

ivan3002/Focusrite-Device-Control-Placement-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 

Repository files navigation

To Compile

  • I used gcc version 12.1.0 supporting c++20 .....
  1. open terminal and navigate to the project directory.
  2. compile using the command: g++ -std=c++20 -o main main.cpp.
  3. Run the executable

[1] Problems Identified

[2] Implementing Phantom Power Feature

  • added a boolean member to device class - "phantomPowerStatus"
  • added setter and getter (as string to be displayed - for the sake of clarity for the user) image
  • inside runApp() method added set-phantom-power to list of commands displayed to user
  • also added line to show phantom-power when user runs the command 'status'
  • processed command input by user inside processDeviceCommand() method image

[3] Ensuring Preamp level in range

  • just a simple if, else statement to check - inside setPreampLevel method

  • also added try catch block inside processCommand to ensure non-numerical values for preamp values are handled

    image


Screenshot of Application image

About

Submission of Device Control Test - Ivan Agyapong

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages