Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/gordonklaus/portaudio
/ functions
Functions
69 in github.com/gordonklaus/portaudio
⨍
Functions
69
◇
Types & classes
20
↓ 26 callers
Function
chk
(err error)
examples/record.go:89
↓ 18 callers
Function
newError
(err C.PaError)
portaudio.go:99
↓ 15 callers
Method
Write
Write uses the buffer provided to OpenStream. The number of samples to write is determined by the size of the buffer.
portaudio.go:1009
↓ 10 callers
Function
duration
(paTime C.PaTime)
portaudio.go:372
↓ 9 callers
Method
Close
Close terminates the stream.
portaudio.go:862
↓ 9 callers
Function
chk
(err error)
examples/play.go:122
↓ 8 callers
Method
Read
Read uses the buffer provided to OpenStream. The number of samples to read is determined by the size of the buffer.
portaudio.go:993
↓ 7 callers
Function
Initialize
Initialize initializes internal data structures and prepares underlying host APIs for use. With the exception of Version(), VersionText(), and ErrorTe
portaudio.go:126
↓ 7 callers
Function
Terminate
Terminate deallocates all resources allocated by PortAudio since it was initialized by a call to Initialize(). In cases where Initialize() has been c
portaudio.go:146
↓ 7 callers
Function
chk
(err error)
examples/mp3.go:66
↓ 6 callers
Method
Start
Start commences audio processing.
portaudio.go:873
↓ 6 callers
Method
Stop
Stop terminates audio processing. It waits until all pending audio buffers have been played before it returns.
portaudio.go:926
↓ 4 callers
Function
OpenDefaultStream
OpenDefaultStream is a simplified version of OpenStream that opens the default input and/or output devices. The args parameter has the same meaning a
portaudio.go:667
↓ 4 callers
Function
chk
(err error)
examples/noise.go:26
↓ 4 callers
Function
chk
(err error)
examples/echo.go:44
↓ 3 callers
Function
HostApis
HostApis returns all information available for HostApis.
portaudio.go:225
↓ 3 callers
Function
OpenStream
OpenStream creates an instance of a Stream. For an input- or output-only stream, p.Output.Device or p.Input.Device must be nil, respectively. The ar
portaudio.go:640
↓ 3 callers
Method
String
()
examples/play.go:111
↓ 3 callers
Function
chk
(err error)
examples/stereoSine.go:44
↓ 3 callers
Function
delStream
(s *Stream)
portaudio.go:560
↓ 2 callers
Function
DefaultHostApi
DefaultHostApi returns information of the default HostApi available on the system. The default host API will be the lowest common denominator host AP
portaudio.go:250
↓ 2 callers
Function
Devices
Devices returns information for all available devices on the system.
portaudio.go:263
↓ 2 callers
Function
HighLatencyParameters
HighLatencyParameters are mono in, stereo out (if supported), high latency, the smaller of the default sample rates of the two devices, and FramesPerB
portaudio.go:420
↓ 2 callers
Function
chk
(err error)
examples/enumerate.go:36
↓ 2 callers
Function
getBuffer
(s *reflect.SliceHeader, p *C.PaStreamParameters)
portaudio.go:1023
↓ 2 callers
Function
hostsAndDevices
()
portaudio.go:320
↓ 2 callers
Method
init
(p StreamParameters, args ...interface{})
portaudio.go:694
↓ 2 callers
Function
lookupDevice
(d []*DeviceInfo, i C.PaDeviceIndex)
portaudio.go:376
↓ 2 callers
Function
paStreamParameters
(p StreamDeviceParameters, fmt C.PaSampleFormat)
portaudio.go:852
↓ 2 callers
Function
readChunk
(r readerAtSeeker)
examples/play.go:87
↓ 2 callers
Function
sampleFormat
(b reflect.Type)
portaudio.go:822
↓ 2 callers
Function
setSlice
(s *reflect.SliceHeader, data uintptr, n int)
portaudio.go:918
↓ 2 callers
Function
updateBuffer
(buf *reflect.SliceHeader, p uintptr, params *C.PaStreamParameters, frames int)
portaudio.go:899
↓ 1 callers
Function
DefaultInputDevice
DefaultInputDevice returns information for the default input device on the system.
portaudio.go:273
↓ 1 callers
Function
DefaultOutputDevice
DefaultOutputDevice returns information for the default output device on the system.
portaudio.go:290
↓ 1 callers
Function
LowLatencyParameters
LowLatencyParameters are mono in, stereo out (if supported), low latency, the larger of the default sample rates of the two devices, and FramesPerBuff
portaudio.go:452
↓ 1 callers
Function
getStream
(id uintptr)
portaudio.go:554
↓ 1 callers
Method
initBuffers
(p StreamParameters, args ...interface{})
portaudio.go:780
↓ 1 callers
Method
initCallback
(p StreamParameters, fun reflect.Value)
portaudio.go:708
↓ 1 callers
Function
newEcho
(delay time.Duration)
examples/echo.go:24
↓ 1 callers
Function
newStereoSine
(freqL, freqR, sampleRate float64)
examples/stereoSine.go:27
↓ 1 callers
Function
newStream
()
portaudio.go:545
↓ 1 callers
Function
setChannels
(s *reflect.SliceHeader, p uintptr, frames int)
portaudio.go:910
↓ 1 callers
Function
streamCallback
export streamCallback
portaudio.go:878
Method
Abort
Abort terminates audio processing immediately without waiting for pending buffers to complete.
portaudio.go:932
Method
AvailableToRead
AvailableToRead returns the number of frames that can be read from the stream without waiting.
portaudio.go:973
Method
AvailableToWrite
AvailableToWrite returns the number of frames that can be written from the stream without waiting.
portaudio.go:983
Method
CpuLoad
CpuLoad returns the CPU usage information for the specified stream, where 0.0 is 0% usage and 1.0 is 100% usage. The "CPU Load" is a fraction of tota
portaudio.go:967
Method
Error
()
portaudio.go:44
Method
Error
()
portaudio.go:95
Function
HostApi
HostApi returns information for a requested HostApiType.
portaudio.go:234
Method
Info
Info returns information about the Stream instance.
portaudio.go:937
Function
IsFormatSupported
IsFormatSupported Returns nil if the format is supported, otherwise an error. The args parameter has the same meaning as in OpenStream.
portaudio.go:483
Method
PutInt32
PutInt32 puts the three most significant bytes of i32 into i24.
portaudio.go:496
Method
String
()
portaudio.go:162
Method
Time
Time returns the current time in seconds for a lifespan of a stream. Starting and stopping the stream does not affect the passage of time.
portaudio.go:953
Function
Version
Version returns the release number of PortAudio.
portaudio.go:32
Function
VersionText
VersionText returns the textual description of the PortAudio release.
portaudio.go:37
Function
cb
pa.c:3
Function
init
()
portaudio.go:510
Function
main
()
examples/record.go:12
Function
main
()
examples/noise.go:9
Function
main
()
examples/mp3.go:14
Function
main
()
examples/enumerate.go:27
Function
main
()
examples/play.go:12
Function
main
()
examples/stereoSine.go:11
Function
main
()
examples/echo.go:8
Method
processAudio
(out [][]float32)
examples/stereoSine.go:35
Method
processAudio
(in, out []float32)
examples/echo.go:36