コード例 #1
0
ファイル: shout.go プロジェクト: Bevinsky/icecast-proxy-go
func (self *Shout) Close() error {
	err := C.shout_close(self.shout)
	if err != 0 {
		return self.createShoutError()
	}
	return nil
}
コード例 #2
0
ファイル: libshout.go プロジェクト: boedy/go-libshout
func (s *Shout) Close() error {
	errcode := int(C.shout_close(s.struc))
	if errcode != C.SHOUTERR_SUCCESS {
		return ShoutError{
			Code:    errcode,
			Message: s.GetError(),
		}
	}

	return nil
}