LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2008, 07:25 AM   #1
hoshangi
Member
 
Registered: Nov 2007
Posts: 88

Rep: Reputation: 15
sound function`


hi
i have a problem i want to use sound in my program
what is the equvalent of sound function in linux;
 
Old 03-12-2008, 10:37 AM   #2
Four
Member
 
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
Alsa might be what you want.

More specificly for video games you might want to use OpenAL.
 
Old 03-13-2008, 02:30 PM   #3
hoshangi
Member
 
Registered: Nov 2007
Posts: 88

Original Poster
Rep: Reputation: 15
thanks

do you have any example about this matter
 
Old 03-13-2008, 02:30 PM   #4
hoshangi
Member
 
Registered: Nov 2007
Posts: 88

Original Poster
Rep: Reputation: 15
thanks

do you have any example about this matter?
 
Old 03-13-2008, 03:09 PM   #5
rubadub
Member
 
Registered: Jun 2004
Posts: 236

Rep: Reputation: 33
Quote:
Originally Posted by hoshangi View Post
do you have any example about this matter?
What language are you using and what are you wanting to do?
 
Old 03-13-2008, 03:26 PM   #6
rubadub
Member
 
Registered: Jun 2004
Posts: 236

Rep: Reputation: 33
Quote:
Originally Posted by hoshangi View Post
do you have any example about this matter?
What language are you using and what are you wanting to do?
 
Old 03-14-2008, 10:40 AM   #7
hoshangi
Member
 
Registered: Nov 2007
Posts: 88

Original Poster
Rep: Reputation: 15
hi

thanks

I'm using C language and i'm looking for a function
as sound function in C Dos
 
Old 03-15-2008, 12:07 AM   #8
Dan04
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu
Posts: 207

Rep: Reputation: 37
On an ANSI terminal, you can do printf("\x1B[10;%d]\x1B[11;%d]\a\x1B[10]\x1B[11]", frequency, duration), where frequency is in Hz and duration is in ms.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Intermittent Sound Function Jazzy1 Linux - Newbie 1 09-30-2006 08:50 PM
Sound applications will not function correctly on GNOME without running alsaconf Maritime Linux - Software 3 05-05-2006 01:19 AM
No,sound recording function with gv4l.mdk10.0 akihandyman Mandriva 0 07-07-2004 08:40 PM
Why does my sound server in Gnome not function? Nichole_knc Slackware 4 04-01-2004 04:54 AM
Problems with the function key, sound quality, and a module question. redkazan Linux - Laptop and Netbook 1 01-12-2004 05:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration