Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 06-04-2006, 02:56 AM   #1
LQ Newbie
Registered: Apr 2006
Posts: 7

Rep: Reputation: 0
How to write C Code to play MP3 files using Open sound System programming Under Linux

Hi, Everyone

I want to play a MP3 file through a C program.

I am using open sound system (OSS) programming under Linux Environment.

If anyone knows help me.

Old 06-04-2006, 08:13 PM   #2
Senior Member
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
does this help?
Old 06-05-2006, 09:21 AM   #3
Registered: Jul 2005
Location: india,coimbatore
Distribution: Fedora core 4
Posts: 85

Rep: Reputation: 15
I think OSS is depreceated and ALSA is the current standard , the api's are well documented and the API is cool and easy to understand. Just a thought good luck any route u take.

S.Suresh Stephen.
Old 06-05-2006, 01:46 PM   #4
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Alsa has OSS compatiblity that you can build into the kernel when you add alsa. As long as thats there a program that uses oss for sound will be compatible with alsa.

But if you are starting out then you probably want to just learn alsa instead of oss to be more compatible.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sound programs cannot find /dev/dsp when I try to play MP3 files. vmlinuz.gz Linux - Newbie 9 03-30-2006 09:59 PM
For people how want to play WMA files without converting MP3 files waelaltaqi Linux - Software 15 11-17-2005 09:30 AM
Able to write files to MP3 player but no files written into actual device? olnex Linux - Hardware 0 11-11-2005 07:32 AM
I can't hear any sound when I play a cd or mp3...but tested with system tools->Sound Niceman2005 Linux - General 6 10-31-2005 10:51 AM
how can i play mp3 files in red hat linux 9 using xmms player? nikhil_imt Linux - Software 4 01-24-2005 03:43 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:32 PM.

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