AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

soundplay problem

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
0inprogram



Joined: 06 Dec 2007
Posts: 21
Location: chennai

PostPosted: Fri Dec 21, 2007 9:33 am    Post subject: soundplay problem Reply with quote

the soundplay is not working .... help

m using wav format only
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
[VxE]



Joined: 07 Oct 2006
Posts: 1219

PostPosted: Fri Dec 21, 2007 9:51 am    Post subject: Reply with quote

Well, without any sample code for anyone to look at...
1. Plug in your speakers properly
2. Unmute your sound in windows
3. Turn your volumes up
4. Make sure your audio device is installed correctly

Cheers!
_________________
My Home Thread
More Common Answers: 1. It's in the FAQ 2. Ternary ( ? : ) guide 3. Post code with [code][/code] tags
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 1077
Location: switzerland

PostPosted: Fri Dec 21, 2007 10:42 am    Post subject: Reply with quote

for me also only WAV worked, now can play also MP3, I don't know why
maybe since I downloaded :
http://www.codecguide.com/download_mega.htm

from help file
Quote:

All Windows OSes should be able to play .wav files.
However, other files (.mp3, .avi, etc.) might not be playable if the right codecs or features aren't installed on the OS.
Back to top
View user's profile Send private message
evandevon



Joined: 22 Apr 2008
Posts: 18

PostPosted: Thu May 08, 2008 3:19 pm    Post subject: mp3 codec required Reply with quote

The problem with only being able to play .wav is that you need an mp3 codec in your system32 folder. Google search for lame.dll and save that file to C:\WINDOWS\system32 and then you should be able to play all .mp3 files.

Here is a simple audio player script
Code:

Gui, Add, Button, x1 y1 w110 h60 , Song_Location
Gui, Show, x131 y91 h60 w110, Music Player
return

ButtonSong_Location:
FileSelectFile, Location , , , Select a song dumbass,
SoundPlay, %Location%
return

GuiClose:
ExitApp

_________________
Inventing problems that need solutions...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group