PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Playing sounds (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Playing sounds
#655
ciprian_dimofte (User)
Senior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Playing sounds 4 Months, 3 Weeks ago Karma: 0  
Also regarding my messenger application, I would like to ask if it's possible that PHP-GTK2 can play a sound... I mean directly from the sound card driver, not by any other 3-rd part program...

Is that possible ?

Thanks
CD
 
  The administrator has disabled public write access.
#696
XeKtRuM (User)
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Re:Playing sounds 4 Months, 2 Weeks ago Karma: 0  
I think this is still not posible, cause theres no extension to play sound files, How ever I recently wanted to do something like this, so I write a simple app to play wav files without any GUI or Commandline in the background, so you could use this to play a sound from php without any noticeable event.

http://www.waipe.com/archivos/WavPlayer.7z

Just uncompress it and include the WavPlayer.php and do something like this:
Code:
<?php
include('WavPlayer/WavPlayer.php');

$player = new WavPlayer();
/* You can specific where you put the files
* in that case do 
* $player = new WavPlayer(Path_to_files);
*/
$player->play_wav_from_stock('1');

//Or if you want a specific wav file
//$player->play_wav_file('complete_path_to_wavfile.wav');

?>
or use as you want the WavPlayer.exe the only thing that this exe do is to play the wav file passed as the first parameter. (i.e. WavPlayer.exe file.wav). I'll Try to write a php extension to play sound files(wav, mp3, ogg, etc) I'll let you know if I doit. Regards
 
  The administrator has disabled public write access.
#700
ciprian_dimofte (User)
Senior Boarder
Posts: 46
graphgraph
User Offline Click here to see the profile of this user
Re:Playing sounds 4 Months, 2 Weeks ago Karma: 0  
WOW this is exactly what I was thinking of: what if I could find some sort of a command line thing that would just play a sound if I pass it on as a parameter.

Thanks a lot mate.

CD
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2009. kksou.com. All Rights Reserved