Hey,
Thanks for the tip ;-) Thing is, the input stream from the /dev/... is just raw data, whereas I want to record in aif or wav format - and if you think I'm gonna code those algorythms myself y'all got another think comin'! ;-)))) I really like the ease of use of the NSSound class, and would dearly love to see Apple provide us with something just as easy for recording sound.
The javax.sound.sampled.* API is in a similar state. Its a very powerful API if you want a lot of control to record stuff - but if you just want to record a wav or aif file, there are just TOO many hoops to jump through. To top it all off, the documentation for the java sound API contains quite a lot of sample code, but it always says
functionName(format); //where format is an AudioFormat
and doesn't explain how they got that format. And when you check the documentation, the AudioFormat seems to be used by EVERYTHING but generated by nothing apart from its constructors.
Woah - just realised this is turning into a bit of a Java rant, so I'll take it over to the Sun forums ;-)))
But my point is: Apple did a GREAT job on the NSSound class for playing sounds and I just wish they'd have gone that little bit futher and made it just as easy to record sound.
(The fact that this isn't the case surprised me, as on Apple's site they keep going on about how great an OS OS X is for music and sound!!!)
Anyway, I'm going to go and have a coffee and cool off a little bit. In the meantime, if anyone has found out how to record sound via the mic in a slightly easier way than having to code the codes ourselves, please let me know ;-)))
But I am sincerely greateful to the previous poster for his comments.
Right - I'm going now.
Any time now.
Right.
I'm off.
Bye.
C