Raised This Month: $ Target: $400
 0% 

Transistor Radio


Post New Thread Reply   
 
Thread Tools Display Modes
PhoeniX51
Junior Member
Join Date: Mar 2005
Location: Fairfield County, CT
Old 05-03-2005 , 18:38  
Reply With Quote #81

Ooooh.. ok I was looking in the sounds folder but I didn't see any sounds.. but then I remembered it's almost impossible to find any original Steam files just by looking through the folders lol. I was thinking way back to 1.5... ah the good ol' days...
PhoeniX51 is offline
Send a message via AIM to PhoeniX51
w00t
New Member
Join Date: May 2005
Old 05-04-2005 , 21:50  
Reply With Quote #82

ahh! I deleted arabmusic.wav by accident how can I restore to the server?

EDIT: I got that figured out... sorry.

But I still can't get a custom .wav to play...

I uploaded the file thebad.wav (6.97MB) to the sound/ambience folder and edited the .sma file accordingly;

Code:
}

public RadioActivate(RadioID[]) {
	new EntID = str_to_num(RadioID)
	
	new Station = get_cvar_num("radio_station")
	if (Station==1) {
		emit_sound(EntID, CHAN_VOICE, "ambience/thebad.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
		set_task(107.0, "StartSoundAgain", EntID+22)
	} else if (Station==2) {
		emit_sound(EntID, CHAN_VOICE, "ambience/Opera.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
		set_task(72.0, "StartSoundAgain", EntID+22)
	} else {
		emit_sound(EntID, CHAN_VOICE, "ambience/lv_jubilee.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
		set_task(6.0, "StartSoundAgain", EntID+22)
	} 
}

public StartSoundAgain(TaskID) {
	new EntID = TaskID-22
	
	new Station = get_cvar_num("radio_station")
	if (Station==1) {
		emit_sound(EntID, CHAN_VOICE, "ambience/thebad.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
		set_task(107.0, "StartSoundAgain", EntID+22)
	} else if (Station==2) {
		emit_sound(EntID, CHAN_VOICE, "ambience/Opera.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
		set_task(72.0, "StartSoundAgain", EntID+22)
	} else {
		emit_sound(EntID, CHAN_VOICE, "ambience/lv_jubilee.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
		set_task(6.0, "StartSoundAgain", EntID+22)
	}
	
}
Compiled it and uploaded to the plugins folder. Restarted server, changed maps and I guess things were already wrong when I didn't see that .wav file being downloaded from the server to be cached into the resources...

What did I do wrong?

Thanks.
w00t is offline
Indiana
Member
Join Date: Nov 2004
Location: Landshut, Germany
Old 05-05-2005 , 19:31  
Reply With Quote #83

Please have a look to my modified version:
http://forums.alliedmods.net/showthr...?p=79356#82747
__________________
C'ya
Indiana

Visit my Fun-Clan: www.wc3-freaks.de
Indiana is offline
w00t
New Member
Join Date: May 2005
Old 05-06-2005 , 16:05  
Reply With Quote #84

Ok it downloaded it this time and it seemed to be working but it doesnt...

I'm using SmartFTP in passive mode to upload the file perhaps that could be the problem? It seems it also creates a similar file in the same directory with the extension .ztmp (about half in size)

So it looks like this;

papar.wav (6mb)
papar.wav.ztmp (2mb)

The song is on the amx_setradiomenu list but when I place it it doesn't play the song...

My radiosounds.cfg;
Code:
Arabic;ambience/arabmusic.wav;107.0 
Opera;ambience/Opera.wav;72.0 
Jubilee;ambience/lv_jubilee.wav;6.0
Papa;ambience/papar.wav;132.0
Could it be the conversion?

I used Smart Audio Converter in WAV (PCM) output format with the following settings for .wav;
frequency 16000
bits 8
channels stereo

I uploaded the file and then downloaded it and plays without a problem..

Please any help is appreciated.
Thanks.

EDIT: Again, I figured it out... sorry. The conversion has to be in mono mode not stereo.

Great plugin!
__________________
w00t - 64.154.39.19
Have fun with us!
w00t is offline
Azimuth
Junior Member
Join Date: Mar 2005
Old 06-21-2005 , 10:14   download
Reply With Quote #85

does anyone know the command to set the speed they can download the files(sounds) to a higher rate?
Azimuth is offline
Send a message via AIM to Azimuth
colby
Senior Member
Join Date: Jun 2005
Location: NC
Old 06-23-2005 , 17:56  
Reply With Quote #86

Sorry for the bump, but im using a custom radio model that my friend made for me, the only thing is it spawns sideways, so how would i rotate it?
colby is offline
Send a message via AIM to colby
eazye
Junior Member
Join Date: Jul 2005
Location: Colorado
Old 07-10-2005 , 23:20  
Reply With Quote #87

i no im a noob but i cant get any of my music on the radio i got it all installed but i dont no how to put my music on can u tell me o and this is a very nice plugin
eazye is offline
[]D [] []v[] []D
Member
Join Date: Jul 2005
Old 07-27-2005 , 15:08  
Reply With Quote #88

whats a good av to mp3 or mp3 to wave program?
[]D [] []v[] []D is offline
Send a message via ICQ to []D [] []v[] []D
nitricacid
Member
Join Date: Jul 2005
Location: there
Old 07-28-2005 , 00:25  
Reply With Quote #89

hey um anyone try to get shoutcast to work?? seriously cuz i run a radio station. i wouldnt mind letting people use it
nitricacid is offline
Send a message via AIM to nitricacid
[]D [] []v[] []D
Member
Join Date: Jul 2005
Old 07-28-2005 , 22:27  
Reply With Quote #90

wat does shoutcast do?
[]D [] []v[] []D is offline
Send a message via ICQ to []D [] []v[] []D
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 09:20.


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