class PMStream

Overview

This abstract superclass represents a PortMidi I/O stream.

Direct Known Subclasses

Defined in:

port_midi/pm_stream.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(stream : LibPortMIDI::Stream) #

[View source]

Instance Method Detail

def close #

Closes the stream. Raises an exception on error.


[View source]
def host_error? : Bool #

Returns true if the stream has a pending host error.

The PortMidi docs note that normally you won't have to call this method.


[View source]
def stream : LibPortMIDI::Stream #

[View source]
def synchronize #

Synchronizes the stream. Raises an exception on error.


[View source]