gnope php gtk gui gnope.org  

Playing Sound

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
Navarr



Joined: 10 May 2006
Posts: 8
Location: King, NC, USA

PostPosted: Sat May 20, 2006 11:38 pm    Post subject: Playing Sound Reply with quote

Is there anyway currently to make an application play a sound? without launching an external program such as Nullsoft or Windows Media Player?
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Sun May 21, 2006 1:46 am    Post subject: Reply with quote

I guess you are on win32, according to the programs you mentioned.
There is a PHP extension that allows you executing native win32 API calls, and there should be a method that plays sounds.
I know that there were several threads in the php-gtk-general mailing list, and you could search the archives (as listed on http://php-gtk2.de ) to find the right method. If you found it, please post the solution here. By the way, the System_WinDrives PEAR package makes use of the PHP-win32-API-call extension, so you could lurk there to find out how it works.
Back to top
Osiris



Joined: 17 Dec 2005
Posts: 65

PostPosted: Sun May 21, 2006 10:00 am    Post subject: Reply with quote

a few weeks ago, I've got a similar question in the channel.
I've got the answer, that openal may be my friend.
But until now, I didn't integrated it into my app.
Back to top
Navarr



Joined: 10 May 2006
Posts: 8
Location: King, NC, USA

PostPosted: Tue May 23, 2006 3:11 pm    Post subject: Reply with quote

Osiris wrote:
a few weeks ago, I've got a similar question in the channel.
I've got the answer, that openal may be my friend.
But until now, I didn't integrated it into my app.


I went to the PECL site, but it seems that the PHP OpenAl extension is only for *nix. Do you know of a Windows Version?
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Wed May 24, 2006 11:31 am    Post subject: Reply with quote

You could ask the author if a win version is possible and could be provided. The package has the subtitle "platform independent sound", so it should be possible.
Back to top
Navarr



Joined: 10 May 2006
Posts: 8
Location: King, NC, USA

PostPosted: Tue Jun 06, 2006 3:38 am    Post subject: Reply with quote

I found it through the OpenAl reference page; its supposedly packaged with the pecl dlls for windows. Does anyone here know which DLL it is tho? There isn't one titled "php_openal.dll"
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Fri Jul 21, 2006 8:32 pm    Post subject: Reply with quote

See http://www.gnope.org/forum/viewtopic.php?t=254
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.