Files
SammelmappeOOP/AudioPlayer/Program.cs
2024-07-25 15:47:46 +02:00

20 lines
651 B
C#

namespace AudioPlayer
{
internal class Program
{
static void Main(string[] args)
{
AudioFile song1 = new MP3File("An Ocean Between Us","bungabunga");
AudioFile song2 = new FLACFile("Lie to me","ungabunga");
AudioFile song3 = new MP3File("Fly high", "ungabungabunga");
AudioFile song4 = new WAVFile("Forever", "bungaunga");
AudioPlayer player = new AudioPlayer(5);
player.AddFile(song1);
player.AddFile(song2);
player.AddFile(song3);
player.AddFile(song4);
player.PlayAll();
}
}
}