[SOLVED] Developping an ASIO host

Audio Plugin Hosts and other audio software applications discussion
Post Reply New Topic
RELATED
PRODUCTS

Post

Hello everybody :),

I have to developpe an ASIO host with the ASIO SDK 2.1.
The first thing I'm trying to do is simply to copy the input buffer into the output buffer.
But I get strange sound in the output...

I don't know if it's the good forum to speak about that.

I past here my callback functions which uses in fact only memcopy:

Code: Select all

ASIOTime *bufferSwitchTimeInfo(ASIOTime *timeInfo, long index, ASIOBool processNow)
{	
	bufferSwitch(index, processNow);

	return 0L;
}

void bufferSwitch(long index, ASIOBool processNow)
{
        long buffSize = asioDriverInfo.preferredSize;

	memcpy(asioDriverInfo.bufferInfos[4].buffers[index], asioDriverInfo.bufferInfos[2].buffers[index],buffSize);

	memcpy(asioDriverInfo.bufferInfos[5].buffers[index], asioDriverInfo.bufferInfos[3].buffers[index],buffSize);

}
buffers 2 and 3 are inputs and buffers 4 and 5 are outputs.

Please tell me if you have a clue.

Thanks a lot :)

CU ;)

BigBulle
Last edited by BigBulle on Sun Mar 12, 2006 10:40 am, edited 1 time in total.

Post

Ok I solved my problem.
I simply forget to take the sample size into account...
(32 bit sample size -> buffer size times 4)

If someone knows a forum more concerned in this kind of problems, please put the link here.

Thanks,

BigBulle

Post

BigBulle wrote:If someone knows a forum more concerned in this kind of problems, please put the link here.
http://www.kvraudio.com/forum/viewforum.php?f=33
Image
Now with improved MIDI jitter!

Post

Thanks a lot ;) and sorry because it was not really difficult to find :? ...

Post Reply

Return to “Hosts & Applications (Sequencers, DAWs, Audio Editors, etc.)”