Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 26th, 2006, 11:13 AM   #1
UVSoft
Newbie
 
Join Date: Jul 2006
Posts: 1
Rep Power: 0 UVSoft is on a distinguished road
Question DirectSound, Two devices with different frequency

Hi there,

There's a question about DirectSound. I wanna capture sound and play captured sound at the same time with the smallest latency. So I've got two buffers - sound and capture. I created N notification points in capture buffer and I'm trying to copy data from one buffer to another... But these buffers are owned by different devices. As everybody knows, there're not two equal frequency generators... so one buffer's always slower/faster than another. There're a lot of algorithms to manage this problems, they're called Sample Rate Convertors. They remove/add some samples from/to buffer, so difference between capturing and playing sound is getting to zero. But first of all I somehow should detect how many samples algorithm must add/remove... That makes a big problem for me.... How can I do it?

Thanks for suggestions.

Regards,
UVSoft.
UVSoft is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word Frequency Regular Expression hoffmandirt C# 4 Feb 27th, 2006 8:21 PM
Acsessing devices directly VBgeekz Visual Basic 5 Feb 1st, 2005 10:32 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:49 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC