Ejemplo n.º 1
0
 private static unsafe uint InternalOpen(
     string device,
     int iscapture,
     AllowedAudioStreamChange allowedChanges,
     AudioStreamFormat requestedFormat,
     out AudioStreamFormat obtainedFormat
     )
 {
     obtainedFormat = new AudioStreamFormat(default);
Ejemplo n.º 2
0
 public static AudioOutputDevice OpenOutput(
     string device,
     AllowedAudioStreamChange allowedChanges,
     AudioStreamFormat requestedFormat,
     out AudioStreamFormat obtainedFormat
     )
 {
     return(new AudioOutputDevice(InternalOpen(device, 0, allowedChanges, requestedFormat, out obtainedFormat), true));
 }
Ejemplo n.º 3
0
 public AudioStream(AudioStreamFormat format, IntPtr buffer, uint length)
 {
     this.format = format;
     this.buffer = buffer;
     this.length = length;
 }