0

Is it possible to make audio on my Cosmos OS?

I tried the code:

using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;
using System.Media;

but visual studio keeps showing a red underline that says: "The Namespace Media is not found."

Is there an alternative?

1 Answers1

0

If you are using VS code, then follow this guide to add a reference to System.Media reference as described here: How do I add assembly references in Visual Studio Code?

For Visual studio 2019: managing-references-in-a-project

Make sure that you are using the correct version (i.e. net core 2.2 does not have it implemented. https://docs.microsoft.com/en-us/dotnet/api/system.media?view=net-5.0)

Athanasios Kataras
  • 23,284
  • 4
  • 28
  • 55
  • but I am using .NET core 2.0 because cosmos (OS construction kit only has .NET core 2.0) but is there a way so I can add the System.Media into .NET Core 2.0 – Pritam Pradhan Jun 24 '21 at 06:17