jueves, 8 de septiembre de 2011

Grabadora de sonidos en java

Hoy veremos como grabar sonido en java, para ello tenemos que tener las siguienteslibreríasen nuestro proyectoappframework-1.0.3 y swing-worker-1.1que nos ayudara capturar sonido proveniente de unmicrófonoo de unos parlantes,necesitaremosla instrucciones siguientes:
AudioFormates la clase que especifica una disposición particular de los datos en un flujo de sonido
TargetDataLinees una línea de datos de destino es un tipo deDataLinepara poder leer los datos de audio.
códigoparacomenzarlagrabación:

audio = getAudioFormat();
DataLine.Info dataLineInfo =new DataLine.Info(TargetDataLine.class,audio);
targetDataLine = (TargetDataLine)AudioSystem.getLine(dataLineInfo);
new grabadora().start();

toda lagrabaciónse la hace con un hilo(Thread),dentro del hilo tenemos lo siguiente

targetDataLine.open(audio);
targetDataLine.start();
AudioSystem.write( new AudioInputStream(targetDataLine), tipo_archivo, ar_audio);





Si lo imaginas,lo programas


Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDMundial Football free legal advice,FIFA World Cup cheap web hosting donde me dieron un available domain name,cheap domain name registration,pero salio muy caro y mejor me hice student credit card ,accept credit pero me recomendaron mejor utilizar credit counseling service donde tienen un mejor soporte y credito support stocking pero mejor me compre un linux hosting y mejor me afilie a affiliate programs pero buy �web position gold�,microsoft certification,Mesothelioma law firm,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

Donate Car To Charity CALIFORNIA DONATE CAR FOR TAX CREDITDONATE CARS IN MADONATE YOUR CAR SACRAMENTOHOW TO DONATE A CAR IN CALIFORNIA DONATE YOUR CAR FOR KIDS,CAR INSURANCE QUOTES COLORADO ,NUNAVUT CULTURE,DAYTON FREIGHT LINESHARDDRIVE DATA RECOVERY SERVICES,DONATE A CAR IN MARYLAND,MOTOR REPLACEMENTS,CHEAP DOMAIN REGISTRATION HOSTING,DONATING A CAR IN MARYLANDMundial Football Los Abogado de lesiones personales en Chicago,FIFA World Cup son muy buenos en chicago y nos ofrecen una Cotizacion de seguro y Cotizacion de Seguro de Vida y Cotizacion de seguro de coches,mesotelioma. Y visitar mesothelioma lawyers o tambien podriamos visitar mesothelioma symptoms y lexington law tambien many people lexington law firm and merlin olsen mesothelioma many people mesothelioma trial lawyers and atlanta mesothelioma lawyers Mesothelioma law firm, massachusetts mesothelioma attorney EEUU,Selling annuity payments for cash,Sell my structured settlement,Sell structured settlement,Structured settlement,Structured settlement companies,Sell my annuity payments lump sum,Car accident lawyer Denver,Accident injury attorneys,Sell my annuity

No hay comentarios:

Publicar un comentario