LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-27-2007, 11:37 PM   #1
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
portable audio programming


I have a friend who is an experimental musician. He doesn't program at all, but he wants me to write him a program. He is looking for a program which will produce audio output based on a more accurate mathematical model that standard MIDI. I already have the mathematical model, but I've never done any audio programming.

My friend is not acquainted with Linux, or any other *NIX except maybe OSX. Thus, I'll probably need the program to run under windows. However, I would like to write a portable program so that those of us with free software OS's can benefit. However, I can't find much in the way of portable audio programming information.

Is there any way to generate really raw audio output and play it back on multiple operating systems? I mean really raw - I'll be mathematically modeling the waveform and sampling it myself. I see that Java has a sound API, but I'm hesitant to use Java. He is likely going to wind up using this to model as many as a dozen strings simultaneously, and performance may become an issue as he'll require high bitrates.

Can I program it for ALSA, then run it through cygwin? Does it have an ALSA implementation? Any ideas?
 
Old 06-28-2007, 12:54 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Perhaps selecting a sound sever that plays on all OS's? That or just output raw PCM to a file, then based on the OS decide what to do with it.
 
Old 06-28-2007, 09:41 PM   #3
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148

Original Poster
Blog Entries: 1

Rep: Reputation: 48
I would just output the raw PCM to a file, but he'll probably want to play back in real time. Can anyone point me to a good tutorial on audio programming in general? I really don't know anything about the issue, and I might answer some of my own questions if I can find one.
 
Old 07-16-2007, 10:42 PM   #4
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148

Original Poster
Blog Entries: 1

Rep: Reputation: 48
To anyone looking at this - I found it. PortAudio. That's what Audacity uses to play back audio on multiple OS's. It just wraps the local audio interface.
 
  


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
portable audio syncing for non-tech users - recommendations wanted jgombos Linux - Software 3 12-10-2006 02:13 PM
how to buy a portable audio player nephish Linux - Hardware 4 08-29-2006 01:37 PM
LXer: Device Profile: Trinity Audio Group portable digital audio workstation LXer Syndicated Linux News 0 07-07-2006 01:03 AM
portable programming - any suggestions for kicking off a project? PBSchmidt Programming 2 09-03-2004 02:57 PM
kernel audio programming ksnash Programming 0 08-04-2003 10:19 AM

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

All times are GMT -5. The time now is 12:01 PM.

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