I have an array of doubles (over 60 thousand records in size), I have a frequency value. Now I want to create a sound from it using C / C ++, which I can play on the speaker. My OS is Linux.
Thank. I hope I'm clear enough.
http://www.linuxjournal.com/article/6735
This is a link to an article in the Linux Journal about programming with ALSA (Advance Linux Sound Architecture). It contains sample code.
beep, Debian. , .
beep
ioctl() KIOCSOUND , . :
ioctl()
ioctl(fd, KIOCSOUND, CLOCK_TICK_RATE/(int)frequency);
frequency :
frequency
ioctl(fd, KIOCSOUND, 0);
. fd - /dev/console, frequency - , . CLOCK_TICK_RATE , , beep 1193180 (). , , , DOS, .
fd
/dev/console
Qt , , , :)
QAudioOutput, , .
api SDL SFML.
Source: https://habr.com/ru/post/1769636/More articles:Giving table rows solid continuous background color - cssAny value when catching an exception and immediately repeating it? - pythonIs it bad to use Reflection in production code? - reflectionLinq to SQL and Intersect - linq-to-sqlMultiple application instances with Codeigniter - codeigniterКак загрузить файл из Интернета в приложении WinForm - c#javascript - remove an element / node without identifier and specific content - javascriptMagento - how to include javascript file page by page - javascriptПрограммно сгенерировать PDF из HTML на iPhone - objective-cHow to encode and decode PER-encoded data in Python? - pythonAll Articles