a „oe{ã@sDddlZddlZddlZddlZddlmmZddlZdd„Ze  dd¡Z e  ¡Z de _ e ¡e _eje j_de j_de j_de j_de j_d e j_ee ƒee ƒe  e ¡Ze dddd¡Ze ej¡Ze ej ef¡e !d¡e "ed ¡e #dd¡Z$ej% &e '¡d ¡Z(e)e(d ƒZ*e* +ee jdƒ¡e* +e$¡e* ,¡dS) éNcCs4t ddd|ddd|j|j|j|j|j|jd|¡S)Nz<4sl4s4slhhllhh4slZRIFFé$ZWAVEzfmt éÚdata)ÚstructÚpackÚ wFormatTagÚ nChannelsÚnSamplesPerSecÚnAvgBytesPerSecÚ nBlockAlignÚwBitsPerSample)ZwfxZdatasize©r úGC:\Program Files\Certbot\pkgs\win32comext\directsound\test\ds_record.pyÚwav_header_pack s òri béiD¬i±éréÿÿÿÿztest_directsound_record.wavÚwb)-ÚosrZ pywintypesZwin32apiZ win32com.directsound.directsoundZ directsoundZdsZ win32eventrZDirectSoundCaptureCreateÚdZ DSCBUFFERDESCZsdescZ dwBufferBytesZ WAVEFORMATEXZ lpwfxFormatZWAVE_FORMAT_PCMrrr r r r ÚprintZCreateCaptureBufferÚbufferZ CreateEventZeventZQueryInterfaceZIID_IDirectSoundNotifyÚnotifyZSetNotificationPositionsZDSBPN_OFFSETSTOPZStartZWaitForSingleObjectZUpdaterÚpathÚjoinZ GetTempPathÚfnameÚopenÚfÚwriteÚcloser r r rÚs<