Wenn du das mit AutoIt realisieren willst wäre die BASS-UDF das sinnvollste, denke ich. Eine andere Audiobibliothek kenn ich für AutoIt sonst nicht...
BASS ist auch nicht so schwer, wenn man den Aufbau einmal begriffen hat.
Also einfach runterladen und die Hilfe ansehen, dort sind viele gute Beispiele.
Für den Begin:
AutoIt
_BASS_STARTUP("bin\Bass.dll")
_BASS_FX_Startup("bin\Bass_FX.dll")
_BASS_Init(0, -1, 100000, 0, "")
;Device ändern:
$device = _BASS_GetDeviceInfo($nr + 1)
If $device[2] < 4 Then
_BASS_Init(0, $nr + 1, 100000, 0, "")
EndIf
_BASS_ChannelSetDevice($MusicHandle, $aktDevice[0] + 1)
;play
_BASS_ChannelPlay($MusicHandle, 0)
;pause
_BASS_ChannelPause($MusicHandle)
;stop
_BASS_ChannelStop($MusicHandleOld)
;set volume
_BASS_ChannelSetAttribute($MusicHandle, $BASS_ATTRIB_VOL, 0);Value between 0 and 1
;Abgespielte Zeit ablesen:
$Time = _BASS_ChannelBytes2Seconds($MusicHandle, _BASS_ChannelGetPosition($MusicHandle, $BASS_POS_BYTE))
;Play File:
$MusicHandle = _BASS_StreamCreateFile(False, $file, 0, 0, 0)
If $aktDevice[0] <> -1 Then ;Set selected device, otherwise use default, just the device index starting by 1
_BASS_ChannelSetDevice($MusicHandle, $aktDevice[0] + 1)
EndIf
_BASS_ChannelPlay($MusicHandle, 1)
_BASS_ChannelSetAttribute($MusicHandle, $BASS_ATTRIB_VOL, 1)
Alles anzeigen
Ansonsten gibts noch von Windows das in Autoit integrierte Sound:
_SoundPlay,_SoundOpen,...
MfG Kanashius