Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pc speaker
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
someguy
Guru
Guru


Joined: 10 Jul 2003
Posts: 433
Location: (-_-) .::OH_WELL::. (-_-)

PostPosted: Fri Sep 19, 2003 9:59 am    Post subject: pc speaker Reply with quote

i know this may be an odd question but i was wondering does anyone here know how to manipulate the pcm speaker on a motherboard to make music (scene music) just out of curiosity ive been wanting to do some stuff to scare some friends when they come in my room n stuff with it so i was wondering if anyone knew :-P thanks peoples
_________________
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Back to top
View user's profile Send private message
Jeedo
Apprentice
Apprentice


Joined: 02 May 2003
Posts: 202
Location: Akureyri, Iceland

PostPosted: Fri Sep 19, 2003 11:43 am    Post subject: Reply with quote

emerge beep

i once made a shell script that was a short song with that program,
Back to top
View user's profile Send private message
Freak_NL
Apprentice
Apprentice


Joined: 27 Jun 2002
Posts: 261
Location: The Netherlands

PostPosted: Fri Sep 19, 2003 2:41 pm    Post subject: Reply with quote

I found some kernel-patch a while ago that creates an OSS soundcard driver for the pc-speaker. I managed to get it working too. :)

..that was on an outdoor LAN-party though, and the Gentoo computer that did this was used as a small webserver and heightsupport for a tentmate's TFT monitor. My 3 tentmates kindly requested me to either stop playing "Star Wars - Imperial March" thru the pc-speaker or observe the little Compaq flying in an attempt to determine its maximum range when tossed..

I killed mpg123 after that.. Google for it, it's out there somewhere, and it worked on a recent 2.4 kernel.
Back to top
View user's profile Send private message
someguy
Guru
Guru


Joined: 10 Jul 2003
Posts: 433
Location: (-_-) .::OH_WELL::. (-_-)

PostPosted: Sat Sep 20, 2003 2:30 am    Post subject: Reply with quote

lol
_________________
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Back to top
View user's profile Send private message
someguy
Guru
Guru


Joined: 10 Jul 2003
Posts: 433
Location: (-_-) .::OH_WELL::. (-_-)

PostPosted: Sat Sep 20, 2003 2:30 am    Post subject: Reply with quote

i do believe beep is what im looking for
_________________
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Back to top
View user's profile Send private message
someguy
Guru
Guru


Joined: 10 Jul 2003
Posts: 433
Location: (-_-) .::OH_WELL::. (-_-)

PostPosted: Sat Sep 20, 2003 2:30 am    Post subject: Reply with quote

can you post that shell script ?
_________________
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Back to top
View user's profile Send private message
gsfgf
Veteran
Veteran


Joined: 08 May 2002
Posts: 1266

PostPosted: Sat Sep 20, 2003 3:48 am    Post subject: Reply with quote

a friend of mine writes these godawlful qbasic programs that play music through the system speaker. And he's gotten smart and stopped storing them on the network drive cso i can't delete them anymore.
_________________
Aim:gsfgf0
Back to top
View user's profile Send private message
iKiddo
Guru
Guru


Joined: 27 Jun 2002
Posts: 341
Location: Europe?

PostPosted: Sat Sep 20, 2003 12:42 pm    Post subject: Reply with quote

gsfgf wrote:
a friend of mine writes these godawlful qbasic programs that play music through the system speaker. And he's gotten smart and stopped storing them on the network drive cso i can't delete them anymore.

:)

I remember there was one game I played on my 386 when I was younger. It was a wintersports game, can't remember the name, and all the music was played through the PC speaker. It sounded really good at the time. Also the Commander Keen games used the pc-speaker.
And last but not least, my grandpa used to have a program on his computer about 13 years ago which could do text-to-speech via the pc-speaker. I was really frightened of the thing :D
Back to top
View user's profile Send private message
Clete2
Guru
Guru


Joined: 09 Aug 2003
Posts: 530
Location: Bloomington, Illinois

PostPosted: Sat Sep 20, 2003 8:39 pm    Post subject: Reply with quote

Hey, I want the script too... looks cool :)...
Back to top
View user's profile Send private message
Jeedo
Apprentice
Apprentice


Joined: 02 May 2003
Posts: 202
Location: Akureyri, Iceland

PostPosted: Sat Sep 20, 2003 9:08 pm    Post subject: Reply with quote

He're is the scipt

Code:

#! /bin/sh

beep -f 500 -l 700
beep -f 480 -l 400
beep -f 470 -l 250
beep -f 530 -l 300 -D 100
beep -f 500 -l 300 -D 100
beep -f 500 -l 300
beep -f 400 -l 600
beep -f 300 -l 500
beep -f 350 -l 700
beep -f 250  -l 600


It's a attempt at the imperial march but since i have no tone ear it sounds crappy.
Back to top
View user's profile Send private message
Clete2
Guru
Guru


Joined: 09 Aug 2003
Posts: 530
Location: Bloomington, Illinois

PostPosted: Sat Sep 20, 2003 10:06 pm    Post subject: Reply with quote

:P... I did a little one where it went from a low pitch to a high one with a while()... (PHP)
Back to top
View user's profile Send private message
someguy
Guru
Guru


Joined: 10 Jul 2003
Posts: 433
Location: (-_-) .::OH_WELL::. (-_-)

PostPosted: Sun Sep 21, 2003 5:40 am    Post subject: Reply with quote

haha thats pimp
_________________
print pack"C*",split/\D+/,`echo "16iII*o\U@{$/=$z;[(pop,pop,unpack"H*",<>
)]}\EsMsKsN0[lN*1lK[d2%Sa2/d0<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<J]dsJxp"|dc`
while [ 1 ] ; do echo "*" | telnet ip.of.print.er 9100 ; done
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
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