trancexx Posted March 22, 2010 Share Posted March 22, 2010 DirectSound offers plenty. Up until recently it was unavailable in AutoIt. AutoItObject obviously changed that.Example that follows is using IDirectSound (IDirectSound8 precisely) and IDirectSoundBuffer interfaces to generate beep sound in your speakers. Normally you would use Beep(), but on some systems that function is unavailable (XP x64 and some more). When you want to be sure beep occurs you have to have a backup plan. This is one possible backup.Difference between the built-in beep is that on x64 systems simulation beep will be sine wave which is soft(er) and this script, for example, will play square wave which sounds very similar to original onboard beeper sound.You will need AutoItObject.au3.Script:Beep.au3 ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
wraithdu Posted March 22, 2010 Share Posted March 22, 2010 Lol. Very clever. I won't give away the joke Link to comment Share on other sites More sharing options...
JRowe Posted March 22, 2010 Share Posted March 22, 2010 Nice job trancexx. [center]However, like ninjas, cyber warriors operate in silence.AutoIt Chat Engine (+Chatbot) , Link Grammar for AutoIt , Simple Speech RecognitionArtificial Neural Networks UDF , Bayesian Networks UDF , Pattern Matching UDFTransparent PNG GUI Elements , Au3Irrlicht 2Advanced Mouse Events MonitorGrammar Database GeneratorTransitions & Tweening UDFPoker Hand Evaluator[/center] Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 23, 2010 Share Posted March 23, 2010 Me like .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
AlmarM Posted March 23, 2010 Share Posted March 23, 2010 Oh thats great. Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
trancexx Posted March 28, 2010 Author Share Posted March 28, 2010 Here's another example with DirectSound. WAVE file(data) player. Something similar to what monoceres posted 100 years ago with flat waveOutWrite function (I saved that script with name WAVE_PlayStructure.au3). Now with DirectSound. And with total control through it. You can play faster, slower, left, right, stop, play from,... In the example I'm just playing with speed. Zip includes script and wav file: PlayWAVE.zip Again AutoItObject.au3 is required. Someone might ask: "Why would I play wav at all and why like that?" Except the fact that you are actually playing raw binary data (variable, resource of your exe, dll, whatever), there isn't much sense. In more than one occasion you would need to do just that. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now