Raised This Month: $ Target: $400
 0% 

[Solved] Sound is not Playing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stylaa
Senior Member
Join Date: Oct 2009
Location: Flensburg, Germany
Old 10-10-2010 , 16:55   [Solved] Sound is not Playing
Reply With Quote #1

the sound dont plays in my plugin

heres my Code

What did i Wrong?

PHP Code:
new badsound[]             = "sound/bad.mp3"

in Plugin Precache

precache_generic
(badsound)

and 
Finaly to play it

client_cmd
(0"mp3 play ^"%s^""badsound
__________________

Some People brings Happynes by Coming
Some by Going

Last edited by Stylaa; 10-11-2010 at 16:46. Reason: Solved
Stylaa is offline
Send a message via ICQ to Stylaa
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-11-2010 , 04:22   Re: Sound is not Playing
Reply With Quote #2

When do you want it to play?
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-11-2010 , 04:33   Re: Sound is not Playing
Reply With Quote #3

Try to put in in your game folder, open your console and type :

mp3 play sound/bad.mp3

If the sound is not playing, you have to re-encode it.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-11-2010 , 04:58   Re: Sound is not Playing
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
Try to put in in your game folder, open your console and type :

mp3 play sound/bad.mp3

If the sound is not playing, you have to re-encode it.
I thought only .wav files are playable...
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-11-2010 , 05:01   Re: Sound is not Playing
Reply With Quote #5

Quote:
Originally Posted by SaM.ThE.MaN View Post
I thought only .wav files are playable...
You can't play mp3 files in emit_sound(), but using console commands like mp3 play, you can.
__________________
Hunter-Digital is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-11-2010 , 05:02   Re: Sound is not Playing
Reply With Quote #6

Oh , i wouldnt wanna use .mps =.= , not that usefull if it plays using console commands
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-11-2010 , 05:05   Re: Sound is not Playing
Reply With Quote #7

That's not really a helpfull comment.

Still, an mp3 file is much smaller than it's wav counterpart, so yeah, it IS usefull when you can download only few kilobytes instead of a few megabytes.

I use mp3 files for the announcer in my CTF mod, that allows quick file downloads and still, each player can adjust their volume by using mp3volume (or the in-game chat commands I provided)
__________________
Hunter-Digital is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-11-2010 , 05:06   Re: Sound is not Playing
Reply With Quote #8

Not really .. convert the mp3 to .wav ... it just adds a few bits after converting
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 10-11-2010 , 05:12   Re: Sound is not Playing
Reply With Quote #9

[IMG]http://img121.**************/img121/8113/clipboard01kaf.jpg[/IMG]

Those "few bits" are 5 times the mp3 original size.
__________________
Hunter-Digital is offline
SaM.ThE.MaN
Senior Member
Join Date: Jan 2010
Old 10-11-2010 , 05:14   Re: Sound is not Playing
Reply With Quote #10

Quote:
Originally Posted by Hunter-Digital View Post
[IMG]http://img121.**************/img121/8113/clipboard01kaf.jpg[/IMG]

Those "few bits" are 5 times the mp3 original size.
Quote:
few megabytes.
I thought they were Megabytes O.o
__________________
  • Project : Level Plugin
o [||||||||||] - 100%
  • Project : OnePieceMod
o [||||||||||] - 20%
SaM.ThE.MaN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode