electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Developers' Corner
Deep Down
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Guest42



Joined: Feb 15, 2005
Posts: 9
Location: NJ, US

PostPosted: Sat Aug 06, 2005 9:23 pm    Post subject: Deep Down Reply with quote  Mark this post and the followings unread

Hey all. I've made a few posts a while ago, but I haven't been serious about wanting to write synthesis software until now. I'm wondering if anyone can point me in a good started direction for really low level IO C programming with the sound card? For some reason, I have an obsession with digging pretty deep into what's going on, and even if it's not the most practical route, I think I would enjoy it. I haven't really looked at CSound too much, but I'm not looking for totally prefabricated code. So any help getting started would be appreciated.
Back to top
View user's profile Send private message AIM Address
diskonext



Joined: Aug 26, 2004
Posts: 307
Location: London, UK

PostPosted: Sun Aug 07, 2005 11:33 am    Post subject: Reply with quote  Mark this post and the followings unread

Well,

most soundcards will just accept PCM-encoded audiostreams. Using the OS-supplied API is your best bet for making any stuff you do compatible with others' computers, I guess.

There are some soundcards that have either some onboard synthesis and or freely usable DSP chips, but don't know which card you have.

There is a great resource on (primarily C-based) DSP programming... what is it called again. Might be http://www.dspguru.com but not sure.

I don't know your general level of DSP knowledge but applications like Max/MSP, pd, csound, Reaktor, and hardware like the Nord Modulars might be a good starting point to get into this stuff.

-diskonext

_________________
:wq
Back to top
View user's profile Send private message Visit poster's website
DrJustice



Joined: Sep 13, 2004
Posts: 2045
Location: Morokulien
Audio files: 3

PostPosted: Sun Aug 07, 2005 1:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi Guest42!

One problem with getting down to the metal on PC audio cards is that documentation on the hardware is generally not available. Big shame really. However, there is a small Soundblaster DIY community, and the linux world may well have an increasing amount of interesting sources in the form of audio card drivers.

Diskontext is right in that using the supplied drivers/APIs may be the best way to start off. If you really want to get low down, a DSP development board can be lots of fun - they can be made into your own standalone synths and FX, but normally they're programmed in assembler.

DJ
--
Back to top
View user's profile Send private message Visit poster's website
Guest42



Joined: Feb 15, 2005
Posts: 9
Location: NJ, US

PostPosted: Wed Aug 10, 2005 9:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

The DSP site seems good for learning about code for the actual signal itself, which is good. But right now, I'm sort of just looking for how I can get the sound from my code to my speakers. There seems to be some waveOut() function that can be used in C/C++ to mess with sound, but I know little beyond that. Anyone know where I can find API documentation with waveOut() details?
Back to top
View user's profile Send private message AIM Address
ian-s



Joined: Apr 01, 2004
Posts: 2575
Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 608

PostPosted: Wed Aug 10, 2005 10:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

If you are talking Windows & MSVC++, you will find the MMIO stuff in the SDK documentation, with samples. MMIO has the widest compatibility but needs a few, quite big buffers for smooth output. The newer DirectSound api might be a better place to start, this is covered in the DirectX sdk docs, still a free download I think.
God I hope they havn't done a DirectX.net pukel

Have fun.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: DrJustice
Page 1 of 1 [5 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Developers' Corner
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
You cannot attach files in this forum
You can download files in this forum
e-m mkii

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use