I have a console application which uses JUCE audio on Ubuntu 20.04. The application runs fine on Ubuntu installed in an ESXi instance or on a physical machine, but on an AWS instance the above callback is not called anymore and the application is not working.
As @KottVV points out, this callback is comes from an audio device (as the name of the function indicates), so without one it will not happen. How were you expecting it to work?
I have just started to use JUCE framework. Ubuntu 20.04 is listed among supported OSs and this problem occurs only on an AWS instance. Is there an work around for this problem ?
aplay -L
default
Playback/recording through the PulseAudio sound server
null
Discard all samples (playback) or generate zero samples (capture)
samplerate
Rate Converter Plugin Using Samplerate Library
speexrate
Rate Converter Plugin Using Speex Resampler
jack
JACK Audio Connection Kit
oss
Open Sound System
pulse
PulseAudio Sound Server
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
sysdefault:CARD=Dummy
Dummy, Dummy PCM
Default Audio Device
dmix:CARD=Dummy,DEV=0
Dummy, Dummy PCM
Direct sample mixing device
dsnoop:CARD=Dummy,DEV=0
Dummy, Dummy PCM
Direct sample snooping device
hw:CARD=Dummy,DEV=0
Dummy, Dummy PCM
Direct hardware device without any conversions
plughw:CARD=Dummy,DEV=0
Dummy, Dummy PCM
Hardware device with all software conversions
usbstream:CARD=Dummy
Dummy
USB Stream Output