Expose flac Version/Vendor string
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2022-05-15 19:22:02 +02:00
parent 3057bde44c
commit 6e490998d2
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
2 changed files with 18 additions and 0 deletions

View file

@ -694,3 +694,11 @@ func (e *Encoder) Close() {
}
runtime.SetFinalizer(e, nil)
}
func Version() string {
return C.GoString(C.FLAC__VERSION_STRING)
}
func Vendor() string {
return C.GoString(C.FLAC__VENDOR_STRING)
}

View file

@ -427,3 +427,13 @@ func TestRoundTripReaderWriterSeeker(t *testing.T) {
os.Remove(outputFile)
}
func TestVersion(t *testing.T) {
t.Logf("version: %s", Version())
}
func TestVendor(t *testing.T) {
t.Logf("vendor: %s", Vendor())
}