Reading levels from command line... possible?
Posted: Fri Nov 15, 2013 10:41 am
Hi forum...
just one totally newby question...
Would it be possible to read the actual level from an audio device from the command line?
I know I can easily "set" mixer settings trough ossmix
I know I can "read" mixer settings too that way...
But I wonder wether it would be possible to have a binary (I have read this is possible with ioctl and API, but I'm not an experienced programmer...
)that would read the actual value and simply return a value...
That way I could, from userspace, verify remote machines are actually playing, detect silence, verify cabling, etc...
I have experience building from sources, so I think this has not to be much difficult for an expert on the matter (I have read the ossxmix source trying to get a clue... but is still too complex to me), maybe someone could put here the code to build such a binary...
Anyhow, thanks in advance for your patience
!
Cheers!
just one totally newby question...
Would it be possible to read the actual level from an audio device from the command line?
I know I can easily "set" mixer settings trough ossmix
I know I can "read" mixer settings too that way...
But I wonder wether it would be possible to have a binary (I have read this is possible with ioctl and API, but I'm not an experienced programmer...
That way I could, from userspace, verify remote machines are actually playing, detect silence, verify cabling, etc...
I have experience building from sources, so I think this has not to be much difficult for an expert on the matter (I have read the ossxmix source trying to get a clue... but is still too complex to me), maybe someone could put here the code to build such a binary...
Anyhow, thanks in advance for your patience
Cheers!