> I did not find anything about this in the **documentation**, examples and in
> GitHub
:stuck_out_tongue_winking_eye:
---
I'm trying to gather some information like the name associated to the input ID
just like how Portaudio has it in this example:
http://portaudio.com/docs/v19-doxydocs/pa__devs_8c_source.html
This returns something like this:
```
Number of devices = 16
--------------------------------------- device #0
Name = Mappeur de sons Microsoft - Input
Host API = MME
Max inputs = 2, Max outputs = 0
Default low input latency = 0.0900
Default low output latency = 0.0900
Default high input latency = 0.1800
Default high output latency = 0.1800
Default sample rate = 44100.00
Supported standard sample rates
for half-duplex 16 bit 2 channel input =
8000.00, 9600.00, 11025.00, 12000.00,
16000.00, 22050.00, 24000.00, 32000.00,
44100.00, 48000.00, 88200.00, 96000.00,
192000.00
--------------------------------------- device #1
[ Default Input ]
Name = Microphone sur casque (Plantron
Host API = MME
Max inputs = 2, Max outputs = 0
Default low input latency = 0.0900
Default low output latency = 0.0900
Default high input latency = 0.1800
Default high output latency = 0.1800
Default sample rate = 44100.00
Supported standard sample rates
for half-duplex 16 bit 2 channel input =
8000.00, 9600.00, 11025.00, 12000.00,
16000.00, 22050.00, 24000.00, 32000.00,
44100.00, 48000.00, 88200.00, 96000.00,
192000.00
[…]
```
---
I've tried with this:
```
setenv("PA_RECOMMENDED_INPUT_DEVICE","1")
sourceInput = input.portaudio()
log(source.id(sourceInput))
shutdown()
```
But it returns an unrepresentative name:
```
[…]
2019/03/14 11:28:51 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video
samples = 1764 ticks.
2019/03/14 11:28:51 [lang:3] portaudio_6708
2019/03/14 11:28:51 [threads:3] Created thread "gstreamer_main_loop" (1 total).
[…]
```
Just so you know, the `sourceInput` in the test does receive data and
outputting in a file works properly.
Thanks!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/734#issuecomment-472926094
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users