public function writePCM($pcm)
    {
        if ($this->isClosed) {
            return;
        }

        if ($this->isPaused) {
            $this->pcmPauseBuffer[] = $pcm;

            return;
        }

        $this->pcmData .= $pcm;

        $this->emit('pcm', [$pcm]);
    }
public function writePCM($pcm)
    {
        if ($this->isClosed) {
            return;
        }

        if ($this->isPaused) {
            $this->pcmPauseBuffer[] = $pcm;

            return;
        }

        $this->pcmData .= $pcm;

        $this->emit('pcm', [$pcm]);
    }
public function writePCM ( $ pcm ) { if ( $ this -> isClosed ) { return ; } if ( $ this -> isPaused ) { $ this -> pcmPauseBuffer [ ] = $ pcm ; return ; } $ this -> pcmData .= $ pcm ; $ this -> emit ( 'pcm' , [ $ pcm ] ) ; }
Writes PCM audio data.

@param string $pcm PCM audio data.

@return void
Writes PCM audio data .