Re: Struggling to create a simple audio mixer
Re: Struggling to create a simple audio mixer
- Subject: Re: Struggling to create a simple audio mixer
- From: Paul Johnston <email@hidden>
- Date: Fri, 27 Nov 2009 12:28:28 +0000
Further to this - I've managed to write a WAV mixer without Core Audio (in pure C). Much faster and much easier to understand.
Much as I'm enjoying learning about Core Audio, Audio Units and all the joy that goes with it, the simple C solution makes more sense and is based on Mo's code that he sent over earlier.
Thanks for the help
Paul
2009/11/26 Paul Johnston
<email@hidden>
Right - I'm getting somewhere but really not managing to figure this out at all. More help would be appreciated.
The scenario is:
- I have 2 audio (WAV) streams available to me for which I have to write a listener server (not a client) to handle the packets.
- I can retrieve the audio packets into a stream from the listener server
However...
I then need to do these steps:
1) combine these 2 audio streams into 1 stream
2) compress the audio data (quality isn't hugely necessary as it's spoken audio not music) so it can be sent over the net
I'm really really struggling on these steps.
What I have tried:
Built an AudioGraph with a mixer and output (although this may not be the best thing to do here) but I can't figure out how to send the packets in (core audio is flipping difficult to understand from the docs)
Building a stream combiner (it's just a WAV stream after all) - but this seems to be more hassle than it's worth
What do I do next?
All help (and I need it) would be appreciated.
Paul
2009/11/24 tahome izwah
<email@hidden>
I found the EAFRead/EAFWrite classes from Stephan Bernsee's DIRAC
example iPhone project very helpful for saving all kinds of data into
an audio file:
http://www.dspdimension.com/technology-licensing/dirac2-iphone/
The orange button at the top of the page.
--th
2009/11/24 Paul Johnston <email@hidden>:
> I have an application that can either send audio data to a file or to a TCP
> port as a stream.
>
> There are 2 audio streams at present (it's a basic videoconferencing app)
> and I need to save this data into 1 audio file.
>
> The app is built as a cocoa app, but I have no idea where to start building
> something that will simply mix two audio streams into a single stream and
> save it.
>
> I've looked at Audio Units but am finding it all very frustrating, with
> carbon code and everything - and I don't know if (or how) I can integrate
> carbon into a cocoa app.
>
> Complete newbie of course but if there was an example cocoa app that did a
> simple mixing of two streams, I'd be grateful if you could tell me where it
> is.
>
> Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (
email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden