|
Do you want raw PCM data?
From what source?
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
YA I WANT A RAW PCM DATA.
THE OUTPUT OF ANALOG TO DIGITAL CONVERTER
|
|
|
|
|
That will depend on the device then. If it's a device that includes a driver of some kind to
access the data then you can get it there. Otherwise you need to write a driver to access the
hardware.
If the device is a sound card, you can use DirectX or the Windows Multimedia APIs.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
will direct show API solve my purpose?
|
|
|
|
|
You haven't yet indicated the source of the audio so I have no idea what your purpose is!
If you need PCM data from a sound card then DirectX (DirectSound) is a solution.
Windows multimedia audio is another soution.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
hi mark
my work is to convert MP3 file to WAv and vice versa.
so to do that i need raw PCM data,on which i can perform operations for the above purpose.
so i wanted to know how can i get that raw PCM data.
|
|
|
|
|
That's what I thought from your first post, which is why I first replied that way.
DirectX is for accessing devices so it's not really applicable for file conversion.
Generally, you read audio data, transform the data to a new format, and write the resulting data.
To convert MP3 to WAV you'd read from the MP3 file, decompress the audio samples to PCM, and
write them to the a WAV file.
To convert WAV to MP3 you'd read from the WAV file, compress the audio samples to using MP3
compression, and write the resulting compressed data to the a MP3 file.
You can learn the MP3 format and compression algorithm and write your own codec.
You'd also need to understand the format of the files (MP3 and WAV).
If you don't want to write your own transformation code then the Audio Compression Manager[^]
included with Windows can help do it for you. You need to supply an MP3 encoder (Windows doesn't
include one) but there is a free one called LAME[^] that's popular.
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
hi mark
u wrote
"To convert MP3 to WAV you'd read from the MP3 file, decompress the audio samples to PCM, and
write them to the a WAV file."
I wanted to know:-
HOW CAN I DECOMPRESS THE AUDIO SAMPLES TO PCM?is there any API for this?
|
|
|
|
|
The same APIs can do it but you still need an MP3 codec (the "dec"oder part of "codec") or you'd
need to write your own.
The APIs are available with the OS but the codec is not due to MPEG-3 licensing restrictions.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
I have a managed C# application which calls functions in an unmanaged C++ dll. On the unmanaged side, I am trying to put up a dialog that contains a text label, a progress bar, and a cancel button. I use CreateDialog and ShowWindow to display the form. The form displays, but for a few seconds has nothing on it. Eventually, the progress bar appears and does show increasing numbers of blue blocks. The form closes as it should, but without ever having displayed the text or the cancel button. The form is displayed for about 10 seconds. Is there a command similar to DoEvents on the managed side that will force all portions of the dialog to display? I saw a reference in one of the articles to a Peek loop, but did not see any code and am not familiar enough with that to implement without more information.
Any help appreciated ...
|
|
|
|
|
theFrenchHornet wrote: I saw a reference in one of the articles to a Peek loop, but did not see any code
Does the article not have the code available for download? Most do I think.
led mike
|
|
|
|
|
No - like I said, it was just a reference. The article was not about it. Thus, no code.
|
|
|
|
|
Not sure what you want but maybe [^]this will help
led mike
|
|
|
|
|
Thanks - I'll see if I can incorporate it.
|
|
|
|
|
Try to use a function like Form->Refresh() Form->Update() Form->Repaint() or something similar.
|
|
|
|
|
Thanks, but doesn't change the behavior.
|
|
|
|
|
Hi ,
I was wondering if there was a way to embedd a package / binary inside a VC++ static library .
Engineering is the effort !
|
|
|
|
|
|
Thanks for ur response , however is this possible within a static library project using VC 6
In other words when linked with the application , the static library does not depend on the resource of the application but can inherently load the resource .
Thanks
Engineering is the effort !
|
|
|
|
|
Do you mean something like this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi.
In my application, I am calling
COleTemplateServer'sObj. UpdateRegistry(OAT_DISPATCH_OBJECT); function inside InitInstance() to load file-type information from the document-template string and places that information in the OLE system registry.
It works fine for Windows98, XP,2000, etc. but on Vista OS, it fails.
What could be the reason?
Is there any solution for this?
Sameer Thakur
|
|
|
|
|
|
If you go to administrative tools, Local Security Policy, Local Policies, Security Options, and scroll to the "User Account Control:" settings and disable them (Just for testing) and try what you are trying and it works, then you found the culprit(s). You may need to logoff/logon or restart to get the new settings to apply.
However, how to get around it in the general sense without end users needing to change security settings is proving to be very difficult.
Hope that helps to at least narrow your problem context a bit.
-- modified at 15:06 Thursday 29th March, 2007
|
|
|
|
|
It is because UpdateRegistry resets some registry entries in HKEY_CLASSES_ROOT and as Vista wont allow you to do this you will get an error (on my product I just get an empty message box!).
The best way is to test if you have write access to the registry before calling the UpdateRegistry method as per this KB article:
http://support.microsoft.com/kb/254957[^]
|
|
|
|
|
I need to diable COLLAPSE option in my GUI - how to do it ?
I try to do it in the events ( onclick ) but its not working.
thanks.
|
|
|
|