Expose flac Version/Vendor string
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3057bde44c
commit
6e490998d2
|
@ -694,3 +694,11 @@ func (e *Encoder) Close() {
|
||||||
}
|
}
|
||||||
runtime.SetFinalizer(e, nil)
|
runtime.SetFinalizer(e, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Version() string {
|
||||||
|
return C.GoString(C.FLAC__VERSION_STRING)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Vendor() string {
|
||||||
|
return C.GoString(C.FLAC__VENDOR_STRING)
|
||||||
|
}
|
||||||
|
|
|
@ -427,3 +427,13 @@ func TestRoundTripReaderWriterSeeker(t *testing.T) {
|
||||||
|
|
||||||
os.Remove(outputFile)
|
os.Remove(outputFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestVersion(t *testing.T) {
|
||||||
|
|
||||||
|
t.Logf("version: %s", Version())
|
||||||
|
}
|
||||||
|
|
||||||
|
func TestVendor(t *testing.T) {
|
||||||
|
|
||||||
|
t.Logf("vendor: %s", Vendor())
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue