Solved

MCI -redirecting sound from one device to another

Posted on 1997-10-28
2
239 Views
Last Modified: 2013-11-20
Can anyone tell me how to redirect the output of the microphone, from one device to another?

Details:
I can record a 'wav' file and then immediately play that down the phone, using mciSendCommand(..,MCI_RECORD,...) and MCI_PLAY. How ever this creates a time delay, I would like to send the output of the microphone directly to this device, has anyone any idea how to do this?

Thanks in advance
Yakky
0
Comment
Question by:yakky
2 Comments
 
LVL 2

Accepted Solution

by:
anichini earned 100 total points
Comment Utility
Here's a suggestion: look at the DirectShow SDK (it's available on the Microsoft web site at http://www.microsoft.com/directx/pavilion/dshow/default.asp

It is an object-oriented streams architecture that superscedes MCI. What you'll need to do is write a DirectShow filter that sends packets of audio data to your phone device. This will probably be done at a lower level than using mciSendCommand. Then hook the output of the Audio Capture DirectShow filter into the input of your custom filter. This should forward the data on with minimal delay (~10-50 ms, perhaps).

0
 

Author Comment

by:yakky
Comment Utility
Thanks for the suggestion. I had my suspisions that I would need to do some lower level programing. I was hoping there would be an easy way of doing it. Still I hadnt thought of using direct X.
Many Thanks
Yakky
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now