| View previous topic :: View next topic |
| Author |
Message |
Navarr
Joined: 10 May 2006 Posts: 8 Location: King, NC, USA
|
Posted: Sat May 20, 2006 11:38 pm Post subject: Playing Sound |
|
|
| 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
|
Posted: Sun May 21, 2006 1:46 am Post subject: |
|
|
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
|
Posted: Sun May 21, 2006 10:00 am Post subject: |
|
|
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
|
Posted: Tue May 23, 2006 3:11 pm Post subject: |
|
|
| 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
|
Posted: Wed May 24, 2006 11:31 am Post subject: |
|
|
| 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
|
Posted: Tue Jun 06, 2006 3:38 am Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
|