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

Terminal Problem with Bells not working

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
spunionring



Joined: 21 Aug 2010
Posts: 18

PostPosted: Sat Dec 22, 2012 9:27 pm    Post subject: Terminal Problem with Bells not working Reply with quote

Hey, this is not a tt++ problem, just a terminal problem im pretty sure, but maybe you guys can help.

I've been checking out different linux OS distros, currently on Mint. On like 2 out of 4 of the ones Ive tried, I dont get bells in the terminal.

The OS's play other sounds fine.

The terminal has bells checked on.

But within a terminal window I dont get any bells, whether its within tintin or just using tabs etc on the commandline.

Also I have tried installing alternate terminal emulators, with no change.

Any ideas?
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sun Dec 23, 2012 4:13 pm    Post subject: Reply with quote

You could play a .wav file using #system.
Back to top
View user's profile Send private message Send e-mail
spunionring



Joined: 21 Aug 2010
Posts: 18

PostPosted: Sat Dec 29, 2012 12:22 am    Post subject: Reply with quote

hrm... playing sounds with #sys seems to both lag and also throw a message to the screen. Or am I not doing it right?

PS: I found what the problem is, apparently Compiz is intercepting my terminal bells. Really like compiz for a desktop manager... but this might be a dealbreaker.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Sat Dec 29, 2012 11:11 pm    Post subject: Reply with quote

If you add a & to the end of the command it will play in the background.

Using #script might get rid of the message.

#script {silence} {<command>}
Back to top
View user's profile Send private message Send e-mail
spunionring



Joined: 21 Aug 2010
Posts: 18

PostPosted: Mon Dec 31, 2012 11:12 pm    Post subject: Reply with quote

the & just made it silent

and #script {silence} {mpg123 tt/sounds/bleep.mp3} actually created a larger output

Quote:
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.3.2-1 (2012/03/25). Written and copyrights by Joe Drew,
now maintained by Nanakos Chrysostomos and others.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title : Beep Sound Artist : SoundBible.com
Album : Year :
Comment : Genre :

Directory: tt/sounds
Playing MPEG stream from bleep.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo

[0:02] Decoding of bleep.mp3 finished.


thanks for the help tho scandum, youre the best Smile
Back to top
View user's profile Send private message
Slysven



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

PostPosted: Thu Jan 03, 2013 12:27 am    Post subject: Reply with quote

Try a -q or --quiet as an argument to the mpg123 ="Quiet mode (no title or boilerplate)" according to --help [deeper delving reveals I have got mpg321 via alternatives system posing as mpg123 so YMMV]:
#SCRIPT {silence} {mpg123 -q tt/sounds/bleep.mp3}
Back to top
View user's profile Send private message
spunionring



Joined: 21 Aug 2010
Posts: 18

PostPosted: Mon Feb 04, 2013 7:58 pm    Post subject: Reply with quote

thanks! that did indeed fire the sound without any text display, slysven!

...though it still has some significant lag... not sure if its just the running of mpg123 or if it waits for the sound to complete before outputting text yet...
Back to top
View user's profile Send private message
Slysven



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

PostPosted: Mon Feb 04, 2013 10:09 pm    Post subject: Reply with quote

OK, does running it in the background cause less delay (for the main tt++ process, not for the spawned mpg123 which may take a little time to start up I suppose):
Code:
#SCRIPT {silence} {mpg123 -q tt/sounds/bleep.mp3 &}
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 -> General Discussion 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