Cannot instantiate SinkInputInfo

Asked by Allie Law

For me this throws an error

```
using PulseAudio;

public void main () {
 SinkInputInfo sink_inputs;
}
```

/tmp/test.vala.3TEE90.c: In function ‘_vala_main’:
/tmp/test.vala.3TEE90.c:12:2: warning: implicit declaration of function ‘pulse_audio_sink_input_info_destroy’ [-Wimplicit-function-declaration]
   12 | pulse_audio_sink_input_info_destroy (&sink_inputs);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: /tmp/ccF8LclZ.o: in function `_vala_main':
test.vala.3TEE90.c:(.text+0x45): undefined reference to `pulse_audio_sink_input_info_destroy'
collect2: error: ld returned 1 exit status
error: cc exited with status 256

Question information

Language:
English Edit question
Status:
Open
For:
Ubuntu pulseaudio Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

Can you help with this problem?

Provide an answer of your own, or ask Allie Law for more information if necessary.

To post a message you must log in.