Click here to Skip to main content
15,897,518 members
Home / Discussions / C#
   

C#

 
Questionloged in user Pin
netJP12L2-Apr-10 16:46
netJP12L2-Apr-10 16:46 
AnswerRe: loged in user Pin
Eddy Vluggen3-Apr-10 14:32
professionalEddy Vluggen3-Apr-10 14:32 
QuestionDownload Video from YouTube Pin
harsimranb2-Apr-10 14:32
harsimranb2-Apr-10 14:32 
AnswerRe: Download Video from YouTube Pin
AspDotNetDev2-Apr-10 14:57
protectorAspDotNetDev2-Apr-10 14:57 
GeneralRe: Download Video from YouTube Pin
harsimranb2-Apr-10 15:13
harsimranb2-Apr-10 15:13 
GeneralRe: Captuing JSON Pin
harsimranb2-Apr-10 18:00
harsimranb2-Apr-10 18:00 
Questionsound card Pin
FlavioAR2-Apr-10 12:30
FlavioAR2-Apr-10 12:30 
AnswerRe: sound card Pin
DaveyM693-Apr-10 3:23
professionalDaveyM693-Apr-10 3:23 
I've never used it for audio, only MIDI which is in the same dll so I assume the principal is the same.

You use the xxxGetNumDevs function to get the number of devices installed. Each of these devices are assigned an ID from 0 to numDevs - 1.

You can call xxxGetDevCaps to get the name and other capabilities of the In or Out device using the ID.
To use the device you call xxxOpen using the ID which will give you an IntPtr which you use to identify the device for all other functions, and you specify a delegate in this function too which will be called for all events of the device (hint: watch out as callbacks may be on a different threads for different events!).

You will need to look in MMSystem.h and this MSDN page[^] to figure out all your P/Invoke signatures and structures.
Dave

If this helped, please vote & accept answer!


Binging is like googling, it just feels dirtier. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

QuestionCtrl+Z character in C# Pin
Kujtim Hyseni2-Apr-10 8:43
Kujtim Hyseni2-Apr-10 8:43 
AnswerRe: Ctrl+Z character in C# PinPopular
Ravi Bhavnani2-Apr-10 9:13
professionalRavi Bhavnani2-Apr-10 9:13 
GeneralRe: Ctrl+Z character in C# Pin
PIEBALDconsult2-Apr-10 10:03
mvePIEBALDconsult2-Apr-10 10:03 
GeneralRe: Ctrl+Z character in C# Pin
Ravi Bhavnani2-Apr-10 10:07
professionalRavi Bhavnani2-Apr-10 10:07 
GeneralRe: Ctrl+Z character in C# Pin
The Man from U.N.C.L.E.2-Apr-10 10:47
The Man from U.N.C.L.E.2-Apr-10 10:47 
GeneralRe: Ctrl+Z character in C# Pin
Khaniya2-Apr-10 18:33
professionalKhaniya2-Apr-10 18:33 
GeneralRe: Ctrl+Z character in C# Pin
Rajesh Anuhya2-Apr-10 22:23
professionalRajesh Anuhya2-Apr-10 22:23 
AnswerRe: Ctrl+Z character in C# Pin
Richard MacCutchan2-Apr-10 23:26
mveRichard MacCutchan2-Apr-10 23:26 
QuestionSetting the region of a computer from a C# program... Pin
glauben2-Apr-10 8:37
glauben2-Apr-10 8:37 
AnswerRe: Setting the region of a computer from a C# program... Pin
Ravi Bhavnani2-Apr-10 9:14
professionalRavi Bhavnani2-Apr-10 9:14 
GeneralRe: Setting the region of a computer from a C# program... Pin
glauben2-Apr-10 11:12
glauben2-Apr-10 11:12 
AnswerRe: Setting the region of a computer from a C# program... Pin
PIEBALDconsult2-Apr-10 10:11
mvePIEBALDconsult2-Apr-10 10:11 
GeneralRe: Setting the region of a computer from a C# program... Pin
glauben2-Apr-10 10:19
glauben2-Apr-10 10:19 
GeneralRe: Setting the region of a computer from a C# program... Pin
PIEBALDconsult2-Apr-10 10:47
mvePIEBALDconsult2-Apr-10 10:47 
GeneralRe: Setting the region of a computer from a C# program... Pin
Mycroft Holmes2-Apr-10 22:36
professionalMycroft Holmes2-Apr-10 22:36 
GeneralRe: Setting the region of a computer from a C# program... Pin
glauben4-Apr-10 15:12
glauben4-Apr-10 15:12 
GeneralRe: Setting the region of a computer from a C# program... Pin
Mycroft Holmes4-Apr-10 15:34
professionalMycroft Holmes4-Apr-10 15:34 

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.