FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
||||
|
||||
Desactivar microfono de la PC
Hola amigos. Me sucede lo siguiente. Necesito hacer un programa que cuando yo quiera mediante un boton desactive el microfono de la PC, es desir lo apague para que no tenga entrada. O si tiene entrada que la PC lo ignore. Alguien sabe como hacer esto??
Gracias de antemano para todos !!! |
#2
|
||||
|
||||
Debes hacerlo mediante el mixer de windows, te paso una unit que alguna vez escribí y como utilizarla:
Aquí utiliza la función mmMixSetMute para poner el micrófono en estado mute, para salir de este estado el segundo parámetro debería ser False.
Saludos!
__________________
delphi.com.ar Dedique el tiempo suficiente para formular su pregunta si pretende que alguien dedique su tiempo en contestarla. |
#3
|
||||
|
||||
Se puede hacer utilizando la API waveOutSetVolume (msdn).
Pásate por aquí y prueba este ejemplo (que la utiliza) a ver si te funciona.
__________________
Germán Estévez => Web/Blog Guía de estilo, Guía alternativa Utiliza TAG's en tus mensajes. Contactar con el Clubdelphi P.D: Más tiempo dedicado a la pregunta=Mejores respuestas. |
#4
|
||||
|
||||
Ufff. Verda que ustedes si que son los mejores ejejeje !
Tks y espero poder ayudarlos algun dia xD. |
#5
|
||||
|
||||
Ese del microfono me dice.
Error call to undefined os function. Que puede ser eso ?? |
#7
|
||||
|
||||
Bueno Neftali, el link que me das esos codigos me trabajan de (http://www.swissdelphicenter.ch/en/showcode.php?id=225) maravillas lo unico que no se como poner el microfono en esta linea.
He probado con MIXERLINE_COMPONENTTYPE_DST_WAVEIN y con MIXERLINE_COMPONENTTYPE_DST_VOICEIN Pero ninguno de los 2 me baja el volumen, pero bueno tengo que tener un microfono, cuando confirme les digo. Gracias de todas formas !!! Última edición por Neftali [Germán.Estévez] fecha: 19-01-2010 a las 09:36:43. |
#8
|
||||
|
||||
Cita:
Saludos!
__________________
delphi.com.ar Dedique el tiempo suficiente para formular su pregunta si pretende que alguien dedique su tiempo en contestarla. |
#9
|
||||
|
||||
Donde da el error.
El error lo muestra en esta linea.
(Linea 49 de la Unit MMUtils) if mixerGetLineInfo(hMix, @mxl, MIXER_GETLINEINFOF_COMPONENTTYPE) = MMSYSERR_NOERROR then y de ahi salta para esta linea (de MMUtils) RaiseLastMMError; (Linea 70) |
Herramientas | Buscar en Tema |
Desplegado | |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Grabar sonido desde un microfono | gaston260 | API de Windows | 4 | 16-07-2008 04:00:31 |
Obtener audio desde un microfono en delphi | fide | API de Windows | 3 | 13-04-2008 20:33:07 |
sonido y microfono en delphi | cmm07 | Varios | 0 | 07-04-2008 14:59:18 |
microfono de alta sensibilidad | b3nshi | Varios | 0 | 16-04-2005 20:26:51 |
Cambiar el volumen de grabación del micrófono | syntetiko | API de Windows | 0 | 25-01-2005 19:11:58 |
|