On Friday 02 March 2018 00:29:49 fredvs wrote:
>
> So, IMHO, portaudio is not ever used anymore (and README.md should be
> updated).
>
You are right, pcaudiolib/source/src/audio.c:
"
struct audio_object *
create_audio_device_object(const char *device,
const char *application_name,
const char *description)
{
struct audio_object *object;
#if defined(_WIN32) || defined(_WIN64)
#ifdef NO_XAUDIO2
if ((object = create_waveout_object(device, application_name,
description)) != NULL)
return object;
#else
if ((object = create_xaudio2_object(device, application_name,
description)) != NULL)
return object;
#endif
#else
#if defined(__APPLE__)
if ((object = create_coreaudio_object(device, application_name,
description)) != NULL)
return object;
#else
if ((object = create_pulseaudio_object(device, application_name,
description)) != NULL)
return object;
if ((object = create_alsa_object(device, application_name,
description)) !=
NULL)
return object;
if ((object = create_qsa_object(device, application_name, description))
!=
NULL)
return object;
if ((object = create_oss_object(device, application_name, description))
!=
NULL)
return object;
#endif
#endif
return NULL;
}
"
> > so he did not built in the pcaudiolib functionality directly into
> > espeak-ng
>
> Hum, once again IMHO, this is sad, a unique library/binary should be good
> too.
You can link pcaudiolib statically if you like. You can link all libraries in
all executables statically if you like. The disadvantage is that you need to
rebuild all applications which use a given library if the library needs to be
changed.
Assume pcaudiolib gets a new output object or a bug needs to be fixed. If
linked dynamically all applications which use pcaudiolib can use the new
pcaudiolib version without the need to recompile the applications.
Martin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk