Linux??mono????PCM???
???????????? ???????[ 2015/3/9 14:43:40 ] ????????Linux ?????? mono
????2????mono?е??ù????
??????.net????????????????DllImport?????????á?????mono???ù????mono??????????????ú????????Interop with Native Libraries????
???????monoDevolop?????????????????????????????????libTest1.so?????????/bin/Debug???
??????Program.cs????????????′???
using System;
using System.Runtime.InteropServices;
using System.IO;
using System.Threading;
namespace helloworld
{
class MainClass
{
public static void Main(string[] args)
{
Console.WriteLine("the app is started ");
PlayPCM();
Thread thread = new Thread(new ThreadStart(PlayPCM));
thread.Start();
while (true)
{
if (Console.ReadLine() == "quit")
{
thread.Abort();
Console.WriteLine("the app is stopped ");
return;
}
}
}
/// <summary>
/// Plaies the PC.
/// </summary>
static void PlayPCM()
{
using (FileStream fs = File.OpenRead("Ireland.pcm"))
{
byte[] data = new byte[4000];
PcmOpen();
while (true)
{
int readcount = fs.Read(data?? 0?? data.Length);
if (readcount > 0)
{
Play(data?? data.Length);
}
else
{
break;
}
}
PcmClose();
}
}
[DllImport("libTest1.so")]
static extern int PcmOpen();
[DllImport("libTest1.so")]
static extern int Play(byte[] buffer?? int length);
[DllImport("libTest1.so")]
static extern int PcmClose();
}
}
???????????????????а???????????????????????????????????????
????3???й?PCM??????Щ??????
?????????е?Ireland.pcm?????????PCMU???????????8000Hz??????????1???????????1????Щ?????snd_pcm_set_params????????????????????????????趨pcm?????????????????????????????????PCM???????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
Linux??????DDR????????????Linux?????????????????豸??????????linux???в???????????м??????????????????????????Linux????Linux??DNS????????????γ???????????Linux?????????????Linux????(???)????????Linux ????????????????????????????????Windows???У?Linux???????Linux????????????????Linux iommu??vfio???????Linux????ε???TCP???????Linux?????????????СLinux?·???????????Linux???Jexus?й?Asp.Net Core??ó???Linux?????????Щ??
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????