Click here to Skip to main content
15,889,879 members
Home / Discussions / C#
   

C#

 
AnswerRe: Create installers dynamically Pin
Mirko198022-Nov-10 2:14
Mirko198022-Nov-10 2:14 
GeneralRe: Create installers dynamically [modified] Pin
Jacob D Dixon22-Nov-10 11:33
Jacob D Dixon22-Nov-10 11:33 
QuestionConverting an particular color in an image to another color Pin
pancakeleh21-Nov-10 4:41
pancakeleh21-Nov-10 4:41 
AnswerRe: Converting color in an image [modified] Pin
Manfred Rudolf Bihy21-Nov-10 4:50
professionalManfred Rudolf Bihy21-Nov-10 4:50 
AnswerRe: Converting color in an image Pin
Richard Andrew x6421-Nov-10 4:51
professionalRichard Andrew x6421-Nov-10 4:51 
AnswerRe: Converting an particular color in an image to another color Pin
pancakeleh21-Nov-10 5:15
pancakeleh21-Nov-10 5:15 
GeneralRe: Converting an particular color in an image to another color Pin
_Erik_22-Nov-10 6:13
_Erik_22-Nov-10 6:13 
QuestionGot a 512 error on calling acmStreamOpen() in c# Pin
Alegria_Lee20-Nov-10 14:30
Alegria_Lee20-Nov-10 14:30 
Hi all,
I got a problem on calling acmStreamOpen() in C#.When I 'm calling acmStreamOpen(), on WAVEFORMATEXsrc and WAVEFORMATEXdest are both with the wFormatTag of WAVE_FORMAT_PCM,it returns 0(Successful).but if I changed any of them (or both )to be WAVE_FORMAT_ALAW, I got a 512 error. Did I miss something on defining the ALAW WAVAFORMATEX?Thanks.
CWavConvertor.WAVEFORMATEX WAVEFORMATEXsrc = new CWavConvertor.WAVEFORMATEX();
           WAVEFORMATEXsrc.wFormatTag = CWavConvertor.WAVE_FORMAT_PCM;
           WAVEFORMATEXsrc.nChannels = 1;
           WAVEFORMATEXsrc.nSamplesPerSec = 22050;
           WAVEFORMATEXsrc.wBitsPerSample = 16;
           WAVEFORMATEXsrc.nBlockAlign = Convert.ToUInt16(WAVEFORMATEXsrc.nChannels * WAVEFORMATEXsrc.wBitsPerSample / 8);
           WAVEFORMATEXsrc.nAvgBytesPerSec = WAVEFORMATEXsrc.nSamplesPerSec * WAVEFORMATEXsrc.nBlockAlign;

           CWavConvertor.WAVEFORMATEX WAVEFORMATEXdest = new CWavConvertor.WAVEFORMATEX();
           WAVEFORMATEXdest.wFormatTag = CWavConvertor.WAVE_FORMAT_ALAW;
           WAVEFORMATEXdest.nChannels = 1;
           WAVEFORMATEXdest.nSamplesPerSec = 8000;
           WAVEFORMATEXdest.wBitsPerSample = 8;
           WAVEFORMATEXdest.nBlockAlign = Convert.ToUInt16(WAVEFORMATEXdest.nChannels * WAVEFORMATEXdest.wBitsPerSample / 8);
           WAVEFORMATEXdest.nAvgBytesPerSec = WAVEFORMATEXdest.nSamplesPerSec * WAVEFORMATEXdest.nBlockAlign;
           WAVEFORMATEXdest.cbSize = 0;
           CWavConvertor.WAVEFILTER wfltr = new CWavConvertor.WAVEFILTER();
           IntPtr mystreamptr = IntPtr.Zero;
           int a = CWavConvertor.acmStreamOpen(out mystreamptr, IntPtr.Zero, ref WAVEFORMATEXsrc, ref WAVEFORMATEXdest, wfltr, 0, 0, CWavConvertor.ACM_STREAMOPENF_NONREALTIME); // returns 512(ACMERR_NOTPOSSIBLE )

AnswerRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Luc Pattyn20-Nov-10 16:36
sitebuilderLuc Pattyn20-Nov-10 16:36 
AnswerRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Bernhard Hiller21-Nov-10 23:00
Bernhard Hiller21-Nov-10 23:00 
GeneralRe: Got a 512 error on calling acmStreamOpen() in c# Pin
Alegria_Lee22-Nov-10 1:11
Alegria_Lee22-Nov-10 1:11 
Questionheeeelp: saving and reading image C# and mySQL Pin
Jassim Rahma19-Nov-10 23:45
Jassim Rahma19-Nov-10 23:45 
AnswerRe: heeeelp: saving and reading image C# and mySQL Pin
thatraja20-Nov-10 1:34
professionalthatraja20-Nov-10 1:34 
AnswerRe: heeeelp: saving and reading image C# and mySQL Pin
Abhinav S20-Nov-10 1:53
Abhinav S20-Nov-10 1:53 
Questionget min and max from histogram [modified] Pin
pancakeleh19-Nov-10 22:35
pancakeleh19-Nov-10 22:35 
QuestionGhostScript Pin
Kevin Marois19-Nov-10 12:08
professionalKevin Marois19-Nov-10 12:08 
AnswerRe: GhostScript Pin
Keith Barrow21-Nov-10 1:06
professionalKeith Barrow21-Nov-10 1:06 
QuestionGetting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Kushagra Tiwari19-Nov-10 3:13
Kushagra Tiwari19-Nov-10 3:13 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Luc Pattyn19-Nov-10 3:41
sitebuilderLuc Pattyn19-Nov-10 3:41 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Manfred Rudolf Bihy19-Nov-10 3:42
professionalManfred Rudolf Bihy19-Nov-10 3:42 
GeneralRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Kushagra Tiwari19-Nov-10 9:47
Kushagra Tiwari19-Nov-10 9:47 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Ian Shlasko19-Nov-10 10:03
Ian Shlasko19-Nov-10 10:03 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
Kushagra Tiwari22-Nov-10 0:17
Kushagra Tiwari22-Nov-10 0:17 
GeneralRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
GuzmanJ2-Mar-11 10:37
GuzmanJ2-Mar-11 10:37 
AnswerRe: Getting an Exception : (HRESULT: 0x800A140C ) while trying to close Word 2k10 Document Pin
gmr_evgen15-Aug-11 14:08
gmr_evgen15-Aug-11 14:08 

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.