简体   繁体   中英

Send the data as-is to the audio device in Xamarin.Forms

I have a custom Audio DAC device. I can connect it with Android/iOS smartphone by OTG cable. The main question is how to supply byte stream audio to the my device?
In UWP application I'm using NAdio which provides wrapper for WASAPI with exclusive mode access. I don't need to resample my generated data in bytes or mix them with system sounds and sounds from other apps.

Is it possible to reach my goal for mobile devices?
Thanks in advance!

I don't need to resample my generated data in bytes or mix them with system sounds and sounds from other apps.

Is it possible to reach my goal for mobile devices?

If your goal is to send audio data to your DAC device without resample and mix. The answer is no for android. I don't know if there is any third party library for automatically convert your audio data. But officially, you need to use native lib like AAudio to conduct your audio data. You can also refer to Best Practices for Android Audio .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM