TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

sound action

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help
View previous topic :: View next topic  
Author Message
dorian



Joined: 29 Jul 2012
Posts: 18

PostPosted: Sun Jul 29, 2012 11:29 am    Post subject: sound action Reply with quote

for first i have to say tintin is the best of all i ever seen mud clients, thanks!Thumbs Up

only things is missing here is ability to trigger sound on action on windows, or i have no idea how to do that. even when i download some command line player and try do something like
Code:
#system playwav somewav.wav

nothing happens, trying to put wav and program in differed places and even do full path to the file, but it works fine from ordinary command line. is there any change to develop something like #sound ?

thanks
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Sun Jul 29, 2012 12:22 pm    Post subject: Reply with quote

One other option is to open a sound player with #run and send commands to it.

For example:

#run sound playwav
#sound somewav.wav

It of course requires the program to allow commands after it's been launched.
Back to top
View user's profile Send private message Send e-mail
dorian



Joined: 29 Jul 2012
Posts: 18

PostPosted: Sun Jul 29, 2012 3:24 pm    Post subject: Reply with quote

that was good idea, trying that with this playwav program but its only mess up with my split, so i try with other one from there: http://sourceforge.net/projects/sox but i does same effect, no sound and split screen switched off Sad


from command line works fine:
Code:

c:\Program Files\WinTin++>sox mover.wav -d

mover.wav:

 File Size: 72.9k     Bit Rate: 353k
  Encoding: Signed PCM
  Channels: 1 @ 16-bit
Samplerate: 22050Hz
Replaygain: off
  Duration: 00:00:01.65

In:100%  00:00:01.65 [00:00:00.00] Out:36.4k [      |      ] Hd:1.9 Clip:0
Done.


that what i get when i trying with another program, it looks like this every time

Code:

#system {mpg123 clong-2.mp3}
#OK: EXECUTING 'mpg123 clong-2.mp3'
#run sound mpg123
#TRYING TO LAUNCH 'sound' RUNNING 'mpg123'.

#sound clong-2.mp3
clong-2.mp3
clong-2.mp3


anyway maybe u know some good command line app ?
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Mon Jul 30, 2012 7:22 am    Post subject: Reply with quote

Don't forget to return to the session you started from.
Code:

#run sound mpg123
#session -
#sound clong-2.mp3


I primarily use Cygwin so no real suggestions for Linux apps. No idea why #system isn't working right.
Back to top
View user's profile Send private message Send e-mail
Slysven



Joined: 10 Apr 2011
Posts: 254
Location: As "Jomin al'Bara" in WoTMUD or Wiltshire, UK

PostPosted: Mon Jul 30, 2012 8:02 am    Post subject: Reply with quote

Sorry for butting in but it initially looked to me like you are using WnTin++ not TinTin++ and I thought that #SYSTEM and #RUN were crippled if not totally unavailable on the WinTin++ platform...? Embarassed

Last edited by Slysven on Tue Jul 31, 2012 10:40 am; edited 1 time in total
Back to top
View user's profile Send private message
dorian



Joined: 29 Jul 2012
Posts: 18

PostPosted: Mon Jul 30, 2012 7:18 pm    Post subject: Reply with quote

Unfortunetly that also wont work:

Code:

#al {test} {#run sound mpg123;#session -;#sound clong-2.mp3}
#OK. {test} NOW ALIASES {#run sound mpg123;#session -;#sound clong-2.mp3} @ {5}.


Code:

test
#TRYING TO LAUNCH 'sound' RUNNING 'mpg123'.


#SESSION 'sound' ACTIVATED.
#SESSION 'gts' ACTIVATED.
clong-2.mp3
#ERROR: #UNKNOWN TINTIN-COMMAND 'sound'.
clong-2.mp3
#NO SESSION ACTIVE. USE: #session {name} {host} {port} TO START ONE.


seems to be all right but there is no sound at all :/ , dont know if those commands work proper on wintin but i think they should,

have idea that command mpg123 has to be installed as windows service ? im lost..
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3274

PostPosted: Tue Jul 31, 2012 7:14 am    Post subject: Reply with quote

If you're using WinTin++ it's indeed not going to work, you'll have to go the Cygwin route to play sounds.
Back to top
View user's profile Send private message Send e-mail
dorian



Joined: 29 Jul 2012
Posts: 18

PostPosted: Sat Aug 04, 2012 6:31 pm    Post subject: Reply with quote

u right thanks for help, ill have that sorted shortly Coffee
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Script Help All times are GMT - 5 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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group