Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Direct hands free chat, how would this be done?

Author
Message
Non Sequitur M
17
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 14th Aug 2011 04:53
I'm trying to create a direct hands free chat system for use with MMOs, and other online MP games. I've looked through the DBP commands, and all they have is record sound commands, but I need live voice.

I'm not asking for a walk-me-through-it tutorial, so don't worry. I have two direct, specific key points that need to be covered.

1) How would I use DBP commands to pull data directly from the mic?

2) If that can't be done, where could I find a 3rd party plug-in that gives me the capability to do so?

That's all, I know how to manipulate the sound from there.

Thanks,

Amo.
Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 14th Aug 2011 05:16 Edited at: 14th Aug 2011 05:16
I think Green Ear could be what you're after.

Edit- just read the "no longer for sale" bit. Sorry

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 14th Aug 2011 05:30
Green Ear has been removed from service while they update it, or something like that I heard. Doing it manually in DB Pro would probably be next to impossible I think. You could probably record fragments at a time and save the wavs for transmit fairly well, but I doubt the transfer via the net would be possible, at least as standard.
There is a web cam plugin available, but again I doubt it has the ability to transfer over the net (although I have never looked to see if there were any commands that helped with this). Unfortunately DB's sound commands have never been the best part of the package.

http://s6.bitefight.org/c.php?uid=103081
Non Sequitur M
17
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 14th Aug 2011 05:37
So, there's no way to read the data from a sound buffer, or any such method? Hmm... I'll have to seriously hit some tech sites and see how mics work, where they store and feed data, etc. There has to be a way. There always has to be a way!

Thanks, guys.
Hodgey
16
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 14th Aug 2011 05:40
Quote: "There has to be a way. There always has to be a way!"

Well if you're lucky someone might be able to whip up some dlls or something. You could even suggest it to IanM to add to his plugins.

Non Sequitur M
17
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 15th Aug 2011 05:22 Edited at: 15th Aug 2011 07:08
I found a Microsoft dll called winmm.dll. I'm looking into it. From what I've read, this is what I need. It has a pretty large library of functions. I guess I just use the dll commands from DBP correct? I've actually never even thought about using those commands until now.

[EDIT] With it, you can can set up streams between computers, among some of the more amazing abilities. If it works out great, I might highly recommend this for DBP users!

[EDIT 2] Aha! Apparently, the best solution is to take a sample of incoming sound every loop, transfer this data, then play that sound on the receiving computer's next loop. I don't think that's something winmm.dll is capable of. I don't know what to do! I need some serious technical help!

[EDIT 3] Well, it's late, this is my last edit. After a few hours of search and study, I think DirectSound is what I need. There are some nice tutorials on split buffering for streaming live sounds. This should be, uh... Interesting. This is a huge step outside of my little nest of safety(aka DarkBASIC commands). I got my work cut out for me! I'll post back if I need help.

Login to post a reply

Server time is: 2026-07-10 22:37:17
Your offset time is: 2026-07-10 22:37:17