mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
cpu: Add CPU information to pa_core
This retains CPU information (processor type and supported features) in pa_core, so that this information can be used by modules at init time to figure out what optimisations may be used.
This commit is contained in:
parent
ffcf3c8a6c
commit
ab4223e9cf
8 changed files with 119 additions and 55 deletions
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include <pulse/mainloop-api.h>
|
||||
#include <pulse/sample.h>
|
||||
#include <pulsecore/cpu.h>
|
||||
|
||||
typedef struct pa_core pa_core;
|
||||
|
||||
|
|
@ -169,6 +170,7 @@ struct pa_core {
|
|||
int realtime_priority;
|
||||
|
||||
pa_server_type_t server_type;
|
||||
pa_cpu_info cpu_info;
|
||||
|
||||
/* hooks */
|
||||
pa_hook hooks[PA_CORE_HOOK_MAX];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue