DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th August 2008
scotsman scotsman is offline
New User
 
Join Date: Aug 2008
Posts: 6
Thanked 0 Times in 0 Posts
Default OSS , playing a sound via command line..

I'm familiar with aplay in regards to also and I was wondering if it's possible to play a sound via the command line with OSS ?





Thanks in advance..
Reply With Quote
  #2   (View Single Post)  
Old 25th August 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Code:
# head -c 1000 /dev/random > /dev/dsp
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
  #3   (View Single Post)  
Old 25th August 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

There are lots of command-line audio players. Browse through /usr/ports/audio/*/pkg-descr for more info. mpg123 and mpg321 seem to be the most popular.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #4   (View Single Post)  
Old 26th August 2008
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 372
Thanked 13 Times in 13 Posts
Default

OSS has ossplay which is like aplay.
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote
  #5   (View Single Post)  
Old 26th August 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

mpg123
or mplayer
Reply With Quote
  #6   (View Single Post)  
Old 28th August 2008
scotsman scotsman is offline
New User
 
Join Date: Aug 2008
Posts: 6
Thanked 0 Times in 0 Posts
Default

Cheers for the replies. It's actually to produce the notification sounds in Pidgin. Gstreamer is an option during compiling but It seems a lot to pull in just for this instance.

I'll look up ossplay... cheers again.
Reply With Quote
  #7   (View Single Post)  
Old 28th August 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

doesn't pidgin support sounds by default (build it)?
Reply With Quote
  #8   (View Single Post)  
Old 29th August 2008
scotsman scotsman is offline
New User
 
Join Date: Aug 2008
Posts: 6
Thanked 0 Times in 0 Posts
Default

Well I would'nt put it past me to overlook this fact, so if someones knows any better then let me know.

However, i've used the program in linux and it plays sound by default. ( and dmix/ aplay %s ) . When using Piding in FreeBSD though , I cant seem to get any output by default. Adding mplayer to the sound options work so thats the option I'll go for.

Cheers for the help ^^
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
matts: a sh script to mail files as attachments from the command line J65nko Guides 6 12th October 2009 06:24 PM
Recording sound with external sound card backrow OpenBSD General 5 21st August 2009 08:17 PM
command-line-fu (digg like site with UNIX commands) vermaden Guides 3 13th March 2009 03:56 PM
avidemux2 command line roddierod FreeBSD General 1 10th November 2008 08:27 PM
TCSH - getting to start of line maxrussell FreeBSD General 3 4th July 2008 11:55 AM


All times are GMT. The time now is 03:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick