|
You can use the Audio Compression Manager[^] to convert
your PCM samples to G.711.
Mark
*edit* fixed the link!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Are there any examples how to use the ACM?
And the second problem I don´t understand exactly is how I have to make the frames adapted to
the size I need? Also after recording I need frames of 20ms. Can I simply cut 160 Bytes from the buffer?
And after receiving my RTP Packets? Must I assemble the Data from the Packet before I have to playout the buffer?
modified on Wednesday, September 24, 2008 3:41 AM
|
|
|
|
|
CrazyDogg wrote: Are there any examples how to use the ACM?
See the "Using the Audio Compression Manager" section at the link.
CrazyDogg wrote: I don´t understand exactly is how I have to make the frames adapted to
the size I need?
That can get tricky because different codecs have different granularity.
You can easily use the ACM functions to examine different compressed formats
to see if 20ms granularity is possible.
I personally capture samples in 20ms chunks, so yes, you can cut 160 bytes of
samples from the buffer.
CrazyDogg wrote: And after receiving my RTP Packets? Must I assemble the Data from the Packet before I have to playout the buffer?
Yes - you have to. If the samples have been converted to another format
(than PCM) you'll need to convert them back to PCM.
Then you have to deal with jitter, lost packets, and if you're doing
capture/playback in real time (like teleconferencing) you need to
deal with clock drift.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
I have an MFC program where the path of a WMV file can be entered. I'm just looking for a simple way to get the number of audio channels from the entered video.
Thanks in advance.
|
|
|
|
|
The Windows Media Format SDK[^] has all the functionality
for working with ASF files (like WMV).
Lots of sample code in the docs!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I am developing a dialog based application in MFC. In my application i have a multiline edit box. For that i have added scrollbars. Scrollbars are working in WindowsXP. But if i run my application in WindowsVISTA scrollbars are not appearing for the edit box. Can any one tell me where it is going wrong?
|
|
|
|
|
hari_honey wrote: i have added scrollbars.
Using what code?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi
I've downloaded free Interbase library - IBPP.
What I must do to use it as <ibpp.h> instead of "..\ibpp\ibpp.h" in my project?
Do I have to move IBPP files from my project folder to ... ?
P.S. I'm new to the C++ scene so if you can write more details of how to do this in MSVS 2005 or DevC++.
Thank you in advance,
Ani
|
|
|
|
|
I didn't fully understand what you were asking but I guess that you want to avoid specifying the full path to the include files in your sources, is that right ? If, yes, you have to specify this in the "additional include directories" option. For VC2005, open the project settings -> "C/C++" -> "General" -> "Additional Include Directories". There add the path to the include dir of the library.
|
|
|
|
|
Well basically in my code I want to write:
#include '<ibpp.h'>
(I use ' just beacuse of the tags)
instead of
"..\IBPP\ibpp.h"
I know that I have to use static library, but I have no clue about them
|
|
|
|
|
Well, and what is the problem with the solution I gave you ?
And why do you want to use <> instead of "" ?
|
|
|
|
|
akirilov wrote: Well basically in my code I want to write
no, don't !
<> is meant for the compiler that the include is to be searched from the includes in its installation folder.
this is a C/C++ standard language feature and it is not what you want.
what you want is to reduce the path in the include instruction, don't you ?
well, if you include in the project settings the path to the folder containing the ibpp.h header file, you will then be able to do the following:
#include "ibpp.h"
so, not using <> , but you reduced the relative path included.
do that satisfy you now ?
|
|
|
|
|
Personally I don't care if it going to be <...> or "...".
However, I have to change some things in a project written by someone else and ... I can't compile it ... for now. I hoped that if I try to stay as close to the environment that the other guy had, I will compile it.
The program was written in DevC++ 4.0 ... no project, just a make file (can't compile trough it).
I receive: [Linker error] undefined reference to IBPP::CheckVersion(unsigned int)
and so on for all functions inside.
So, this is the main reason for my question ... and I hoped around it to learn more about static library.
|
|
|
|
|
Hi All,
Can anyone please tell me whether may I debug a microsoft function like strcpy or IStoreNameSpace: RegisterNotification() or any othe MS functtion?
Thanks!
dolly,
N,IN
|
|
|
|
|
If the source is available, you can set a break point and step into the source. If the source is unavailable, then you cannot do it.
What does it have to do with if it is a function written by MS or not?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
why ? your application is crashing in there ?
here is a better advice : fix you code. strcpy() is certainly not the cause.
so, please show your code...
|
|
|
|
|
Actually strcpy() is just an example but I am facing a problem with another function, in Windows Mail plugin, it's a COM DLL written in 'c' language, and IStoreNameSpace: RegisterNotification() method fails there....and the last return code which I get is not implemented.
dolly,
N,IN
|
|
|
|
|
I am getting the return code from this function as 0x80004001
dolly,
N,IN
|
|
|
|
|
show out your F*ckin' code !
|
|
|
|
|
In some cases is the sourcecode available. But you need a complete installation of the VS!!!
If there are problems with the MS-Functions check your input parameters. That are the most error case. ("The biggest problem of the PC sits in front of it" )
Greetings from Germany
|
|
|
|
|
Hi all,
I want to find all the drives and its information like(volume name, size, type etc.) in my system....
How can i do this???
Thanks in advance
|
|
|
|
|
|
Some of the information that you need can be taken using GetVolumeInformation
Russell
|
|
|
|
|
VCProgrammer wrote: I want to find all the drives and its information...
Check out GetLogicalDriveStrings() and GetDiskFreeSpace() .
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|