mirror of
https://github.com/pion/mediadevices.git
synced 2026-04-22 15:57:27 +08:00
932e23af03
* Add tag * Add nomicrophone build tag for optional microphone support - Changed from platform-specific (!windows) to opt-out build tag (!nomicrophone) - Microphone support included by default (non-breaking) - Use -tags nomicrophone to exclude when malgo deps unavailable - Useful for cross-compilation and minimal builds - Renamed microphone_windows.go to microphone_stub.go for clarity * Update README
16 lines
528 B
Go
16 lines
528 B
Go
//go:build nomicrophone
|
|
// +build nomicrophone
|
|
|
|
package microphone
|
|
|
|
// This stub file is used when building with the 'nomicrophone' build tag.
|
|
// Use this when cross-compiling or when malgo (miniaudio) dependencies are not available.
|
|
//
|
|
// To build without microphone support:
|
|
// go build -tags nomicrophone
|
|
//
|
|
// This is particularly useful for:
|
|
// - Cross-compilation where CGO dependencies are unavailable
|
|
// - Environments without audio system development libraries
|
|
// - Minimal builds that only need camera/video support
|