andreondra / use

A platform for emulator development
GNU General Public License v3.0
7 stars 0 forks source link

Add APU sound support #76

Closed andreondra closed 1 year ago

andreondra commented 1 year ago

There are many ways to implement sound:

Solve multithread data access Add SoundConfig filter setup

Emulation will be controlled by the main thread, this thread will fill up audio buffers. Other solution would be to simply get current parameters and render audio data in the separate thread.

There will be 2 realtime modes: 1) without sound - in this mode, emulation will run in the main thread with GUI, allowing to see the values in real time

2) with sound - in this mode, emulation will run in a separate thread filling audio buffer and GUI (except video) will be disabled (or add per-gui locking mechanism?)

In sound sample getter: not using std::bind (slower than lambda calls)