15,895,142 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by András Naszály (Top 6 by date)
András Naszály
14-Nov-13 16:10pm
View
Hi, tried following code:
int query()
{
UINT deviceCount = waveInGetNumDevs();
for (UINT deviceIndex = 0;
deviceIndex < deviceCount; deviceIndex++)
{
WAVEINCAPS woc;
MMRESULT result = waveInGetDevCaps(
deviceIndex, &woc, sizeof(woc));
printf("Device: %u-%u : %s\n",
woc.wMid, woc.wPid, woc.szPname);
printf("%u\n", woc.wMid);
printf("%u\n", woc.wPid);
printf("%s\n", woc.szPname);
printf("%d\n", woc.dwFormats);
printf("%u\n", woc.wChannels);
}
printf("Any key...");
_getch();
return 0;
}
but cant figure out the result, dwformats is 1048575.
András Naszály
14-Nov-13 9:17am
View
How can i check the capabilities?
András Naszály
13-Nov-13 3:28am
View
Error message during program run:
"The specified format is not supported or cannot be translated. Use the Capabilities function to determine the supported formats."
András Naszály
12-Nov-13 15:32pm
View
Hi, thanks for the help. First of all i switched to VS2013 from quincy.
I tried Your changes, builds now, but cant open device with waveformatextensible. Im trying 16bit since it should be working, but it doesnt:
<pre>
WAVEFORMATEXTENSIBLE pFormat; // 24 bit format - not working
pFormat.Format.wFormatTag = WAVE_FORMAT_EXTENSIBLE; // bővített formátum lesz, később
pFormat.Format.nChannels = 1; // 1=mono, 2=stereo
pFormat.Format.nSamplesPerSec = sampleRate; // 44100
pFormat.Format.nAvgBytesPerSec = sampleRate * 2; // = nSamplesPerSec * n.Channels * wBitsPerSample/8
pFormat.Format.nBlockAlign = 2; // = n.Channels * wBitsPerSample/8
pFormat.Format.wBitsPerSample = 16; // 16 for high quality, 8 for telephone-grade
//pFormat.Format.wValidBitsPerSample = 20;
pFormat.Format.cbSize = 22;
pFormat.dwChannelMask = SPEAKER_FRONT_LEFT;
pFormat.SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
</pre>
How come i can open device with same settings through waveformatex but not with waveformatextensible structure?
András Naszály
11-Nov-13 3:11am
View
JOB OFFER!
If anybody would like to solve this, i am willing to pay for it!
András Naszály
5-Nov-13 14:33pm
View
Hi Richard,
thanks for the tip, i tried it, but doesnt work. Now i have "expected constructor, destructor, or type conversion before ( token" error.
Where exactly do i need to add the definition in the code? Anyway i dont understand, if i link ksmedia.h which includes the definition do i have to define the subtype once more?
Show More