Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalntdll.dll not found Pin
Anu_Bala13-Apr-08 19:01
Anu_Bala13-Apr-08 19:01 
GeneralRe: ntdll.dll not found Pin
nisha0000013-Apr-08 19:16
nisha0000013-Apr-08 19:16 
GeneralRe: ntdll.dll not found Pin
Anu_Bala13-Apr-08 19:23
Anu_Bala13-Apr-08 19:23 
GeneralRe: ntdll.dll not found Pin
nisha0000013-Apr-08 19:44
nisha0000013-Apr-08 19:44 
GeneralRe: ntdll.dll not found Pin
Hamid_RT14-Apr-08 20:33
Hamid_RT14-Apr-08 20:33 
Questionwall message in windows Pin
vineeshV13-Apr-08 17:49
vineeshV13-Apr-08 17:49 
QuestionRe: wall message in windows Pin
David Crow24-Apr-08 10:36
David Crow24-Apr-08 10:36 
GeneralReading in 16 and 24-bit audio data into (32-bit) integer buffers Pin
TheBlindWatchmaker13-Apr-08 17:46
TheBlindWatchmaker13-Apr-08 17:46 
Hello!

Here is what I am trying to do. I am writing an audio processing program that can read 16 and 24 bit WAV files into int (32-bit) buffers.

The 16-bit condition is straight-forward: I would read in the required number of bits into short buffers. However, since C++ does not have a native 24-bit datatype, and I would like to use the same buffer for 16 or 24 bit data, I would have to read the WAV file data into int buffers.

The further processing that the program does is on the ENTIRE contents of the int buffer and NOT on a byte-by-byte basis.

I have written the WAV read/write part of the program. Where I am running into a bit of difficulty is unpacking three bytes of data (24-bits) into a 32-bit container.

Should I copy the contents of the audio file into a temporary buffer as contiguous data and then fill my main buffer with three bytes of this data, and then skip a byte?

Is there any other way that you would recommend reading 24-bit data into a 32-bit buffer?

Thank you for your pointers, as it were. I do not expect code to be written for me, but pseudocode would be immensely helpful.

Thanks!
GeneralRe: Reading in 16 and 24-bit audio data into (32-bit) integer buffers Pin
enhzflep14-Apr-08 4:00
enhzflep14-Apr-08 4:00 
GeneralRe: Reading in 16 and 24-bit audio data into (32-bit) integer buffers Pin
TheBlindWatchmaker14-Apr-08 18:22
TheBlindWatchmaker14-Apr-08 18:22 
GeneralOpening Word with "Pen" selected instead of cursor Pin
goodoljosh198013-Apr-08 14:57
goodoljosh198013-Apr-08 14:57 
GeneralRe: Opening Word with "Pen" selected instead of cursor Pin
nisha0000013-Apr-08 19:08
nisha0000013-Apr-08 19:08 
GeneralRe: Opening Word with "Pen" selected instead of cursor Pin
goodoljosh198014-Apr-08 7:58
goodoljosh198014-Apr-08 7:58 
GeneralConvert array to pointers Pin
KARFER13-Apr-08 12:26
KARFER13-Apr-08 12:26 
GeneralRe: Convert array to pointers Pin
GDavy13-Apr-08 22:18
GDavy13-Apr-08 22:18 
GeneralAudio Equalizer With and Without DirectSound(ParamEq DMO) Pin
Akin Ocal13-Apr-08 11:38
Akin Ocal13-Apr-08 11:38 
QuestionInitializing std::string with "Extended ASCII Codes" Pin
Mushtaque Nizamani13-Apr-08 9:34
Mushtaque Nizamani13-Apr-08 9:34 
GeneralRe: Initializing std::string with "Extended ASCII Codes" Pin
Randor 13-Apr-08 14:06
professional Randor 13-Apr-08 14:06 
GeneralRe: Initializing std::string with "Extended ASCII Codes" Pin
Mushtaque Nizamani13-Apr-08 16:05
Mushtaque Nizamani13-Apr-08 16:05 
GeneralNo hwnd, ie hwnd = 00000000 using CMonthCalendar Control Pin
Larry Mills Sr13-Apr-08 9:03
Larry Mills Sr13-Apr-08 9:03 
GeneralRe: No hwnd, ie hwnd = 00000000 using CMonthCalendar Control Pin
Michael Dunn13-Apr-08 12:59
sitebuilderMichael Dunn13-Apr-08 12:59 
GeneralRe: No hwnd, ie hwnd = 00000000 using CMonthCalendar Control Pin
Larry Mills Sr14-Apr-08 6:02
Larry Mills Sr14-Apr-08 6:02 
QuestionRe: No hwnd, ie hwnd = 00000000 using CMonthCalendar Control Pin
David Crow14-Apr-08 10:31
David Crow14-Apr-08 10:31 
QuestionRe: No hwnd, ie hwnd = 00000000 using CMonthCalendar Control Pin
David Crow14-Apr-08 4:30
David Crow14-Apr-08 4:30 
GeneralRe: No hwnd, ie hwnd = 00000000 using CMonthCalendar Control Pin
Larry Mills Sr14-Apr-08 5:33
Larry Mills Sr14-Apr-08 5:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.