Where is code in XBMC that uses the microphone?
#1
Question 
Hi,
I am trying to find the code in the karaoke part of XBMC that deals with the microphone.
From reading other posts I understand that there is a part of code that allows the microphone to pass through the input from the microphone but I cant find it. Could someone point me to its location?
Can the microphone be accessed using the SDL library or does it use another library?
Reply
#2
are you sure ?
the xbmc part for karaoké isn't just a lyrics display?
Reply
#3
I looked at the code and it appears you're right, which still means I am still stuck for an example of code that uses the microphone.

Is it possible to use the capture audio from the microphone at present and if so could someone direct me to the code that does this?
Reply
#4
i don't think you'll find support for microphone entry in xbmc context.
Reply
#5
Thanks for the reply, it was my understanding that the karaoke can play audio from the microphone. If this is true that would lead me to believe that it is possible? I understand that the uses might be limited but I would like to look at any code that uses a microphone at all. If there is no support I would be interested in trying to add it if possible.
Reply
#6
There is no sound capture in xbmc at the moment. You're welcome to add it, thanks for your interest.

The audio subsystem will shortly be replaced by code developped in the AudioEngine branch, so I suggest looking at that branch. Adding a mike input should actually be easier to do with the AudioEngine (mixing the mike in the song and maybe some filters I suppose).

SDL is going away, each platform uses the native APIs to work with the sound devices. Just worry about your own platform for now.

edit: actually, you may have some hardware mixing already done by the OS, but that's very platform dependent and not controllable inside XBMC.
Always read the Kodi online-manual, the FAQ and search the forum before posting.
Do not e-mail Kodi Team members directly asking for support. Read/follow the forum rules (wiki).
For troubleshooting and bug reporting please make sure you read this first.
Reply
#7
I been struggling with this exact problem, and no offence, But not everyone is a coder to just add support. Learning from scratch to get quality it tales years.

If people that can do it you guys dont have to ask, but asking cause you dont have interest or cant do it yourselves or whatever other reason is a crappy pov. Its a bad habit form team memebrs and frankly it shouldnt be used.

I been struggling for days literally I get sound playback and can record bt not in real time, perhaps ecasound -i somefile.mp3 -o alsahw,0,2

perhaps more difficult.

http://forum.xbmc.org/showthread.php?tid...ne+karaoke

http://forum.xbmc.org/showthread.php?tid=107172

http://eca.cx/ecasound/Documentation/exa...rtplayback

on my asrock im able to determine device recod and playback but sod me if I know any further.

arecord -c1 -Dplughw:0,2 -f cd -vv | aplay
Reply
#8
anyways xbox had that code and prolly still does linux not so much

http://forum.xbmc.org/showthread.php?tid...ne+karaoke
Reply

Logout Mark Read Team Forum Stats Members Help
Where is code in XBMC that uses the microphone?0