Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

About SoundPlay and MCI


  • Please log in to reply
1 reply to this topic
Zaelia
  • Members
  • 754 posts
  • Last active: Jan 17 2015 02:38 AM
  • Joined: 31 Oct 2008
SoundPlay can't work if a dispatcher is missing or wrong, whereas the codecs are installed (problem with multiple FULL PACK codec)...

Perhaps, a line into RTFM for enlight this ?

Media Control Interface (MCI) and SoundPlay for AHK need this fix (exampe for ogg extension files):

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MCI Extensions
ogg REG_SZ MPEGVideo

For older windows versions, we need to change system.ini and/or win.ini and add this line ogg=MPEGVideo after [mci] and/or [MCI Extensions.BAK]

I could post in bugs report forum section , but as it is not the fault of AHK :)

Zaelia
  • Members
  • 754 posts
  • Last active: Jan 17 2015 02:38 AM
  • Joined: 31 Oct 2008
or if you don't modify ini or reg you can open MCI like this

DllCall("winmm\mciSendStringA", "str", "open vorbis.ogg Type MPEGVIDEO alias sound" . count, "Uint", 0, "Uint", 0, "Uint", 0)