2024-11-04 23:15:32 +13:00
|
|
|
package multimedia
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
#include "gen_qaudioprobe.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/mappu/miqt/qt"
|
|
|
|
"runtime"
|
|
|
|
"runtime/cgo"
|
|
|
|
"unsafe"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QAudioProbe struct {
|
2025-01-18 17:57:48 +13:00
|
|
|
h *C.QAudioProbe
|
2024-11-04 23:15:32 +13:00
|
|
|
*qt.QObject
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) cPointer() *C.QAudioProbe {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return this.h
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) UnsafePointer() unsafe.Pointer {
|
|
|
|
if this == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return unsafe.Pointer(this.h)
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// newQAudioProbe constructs the type using only CGO pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func newQAudioProbe(h *C.QAudioProbe) *QAudioProbe {
|
2024-11-04 23:15:32 +13:00
|
|
|
if h == nil {
|
|
|
|
return nil
|
|
|
|
}
|
2024-12-07 17:15:57 +13:00
|
|
|
var outptr_QObject *C.QObject = nil
|
|
|
|
C.QAudioProbe_virtbase(h, &outptr_QObject)
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
return &QAudioProbe{h: h,
|
2024-12-07 17:15:57 +13:00
|
|
|
QObject: qt.UnsafeNewQObject(unsafe.Pointer(outptr_QObject))}
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
// UnsafeNewQAudioProbe constructs the type using only unsafe pointers.
|
2024-12-07 17:15:57 +13:00
|
|
|
func UnsafeNewQAudioProbe(h unsafe.Pointer) *QAudioProbe {
|
|
|
|
return newQAudioProbe((*C.QAudioProbe)(h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQAudioProbe constructs a new QAudioProbe object.
|
|
|
|
func NewQAudioProbe() *QAudioProbe {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQAudioProbe(C.QAudioProbe_new())
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewQAudioProbe2 constructs a new QAudioProbe object.
|
|
|
|
func NewQAudioProbe2(parent *qt.QObject) *QAudioProbe {
|
2024-11-19 19:29:06 +13:00
|
|
|
|
2025-01-18 17:57:48 +13:00
|
|
|
return newQAudioProbe(C.QAudioProbe_new2((*C.QObject)(parent.UnsafePointer())))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) MetaObject() *qt.QMetaObject {
|
2025-02-01 13:45:16 +13:00
|
|
|
return qt.UnsafeNewQMetaObject(unsafe.Pointer(C.QAudioProbe_metaObject(this.h)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) Metacast(param1 string) unsafe.Pointer {
|
|
|
|
param1_Cstring := C.CString(param1)
|
|
|
|
defer C.free(unsafe.Pointer(param1_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
return (unsafe.Pointer)(C.QAudioProbe_metacast(this.h, param1_Cstring))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func QAudioProbe_Tr(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QAudioProbe_tr(s_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QAudioProbe_TrUtf8(s string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QAudioProbe_trUtf8(s_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) SetSource(source *QMediaObject) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QAudioProbe_setSource(this.h, source.cPointer()))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) SetSourceWithSource(source *QMediaRecorder) bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QAudioProbe_setSourceWithSource(this.h, source.cPointer()))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) IsActive() bool {
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QAudioProbe_isActive(this.h))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) AudioBufferProbed(buffer *QAudioBuffer) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_audioBufferProbed(this.h, buffer.cPointer())
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QAudioProbe) OnAudioBufferProbed(slot func(buffer *QAudioBuffer)) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_connect_audioBufferProbed(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QAudioProbe_audioBufferProbed
|
|
|
|
func miqt_exec_callback_QAudioProbe_audioBufferProbed(cb C.intptr_t, buffer *C.QAudioBuffer) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(buffer *QAudioBuffer))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 15:02:06 +13:00
|
|
|
slotval1 := newQAudioBuffer(buffer)
|
2024-11-04 23:15:32 +13:00
|
|
|
|
|
|
|
gofunc(slotval1)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) Flush() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_flush(this.h)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
func (this *QAudioProbe) OnFlush(slot func()) {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_connect_flush(this.h, C.intptr_t(cgo.NewHandle(slot)))
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QAudioProbe_flush
|
|
|
|
func miqt_exec_callback_QAudioProbe_flush(cb C.intptr_t) {
|
2024-11-04 23:15:32 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func())
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
gofunc()
|
|
|
|
}
|
|
|
|
|
|
|
|
func QAudioProbe_Tr2(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QAudioProbe_tr2(s_Cstring, c_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QAudioProbe_Tr3(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QAudioProbe_tr3(s_Cstring, c_Cstring, (C.int)(n))
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QAudioProbe_TrUtf82(s string, c string) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QAudioProbe_trUtf82(s_Cstring, c_Cstring)
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
|
|
|
func QAudioProbe_TrUtf83(s string, c string, n int) string {
|
|
|
|
s_Cstring := C.CString(s)
|
|
|
|
defer C.free(unsafe.Pointer(s_Cstring))
|
|
|
|
c_Cstring := C.CString(c)
|
|
|
|
defer C.free(unsafe.Pointer(c_Cstring))
|
2025-02-01 13:45:16 +13:00
|
|
|
var _ms C.struct_miqt_string = C.QAudioProbe_trUtf83(s_Cstring, c_Cstring, (C.int)(n))
|
2024-11-04 23:15:32 +13:00
|
|
|
_ret := C.GoStringN(_ms.data, C.int(int64(_ms.len)))
|
|
|
|
C.free(unsafe.Pointer(_ms.data))
|
|
|
|
return _ret
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
func (this *QAudioProbe) callVirtualBase_Event(event *qt.QEvent) bool {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QAudioProbe_virtualbase_event(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer())))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QAudioProbe) Onevent(slot func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool) {
|
|
|
|
ok := C.QAudioProbe_override_virtual_event(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QAudioProbe_event
|
|
|
|
func miqt_exec_callback_QAudioProbe_event(self *C.QAudioProbe, cb C.intptr_t, event *C.QEvent) C.bool {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent) bool, event *qt.QEvent) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QAudioProbe{h: self}).callVirtualBase_Event, slotval1)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) callVirtualBase_EventFilter(watched *qt.QObject, event *qt.QEvent) bool {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
return (bool)(C.QAudioProbe_virtualbase_eventFilter(unsafe.Pointer(this.h), (*C.QObject)(watched.UnsafePointer()), (*C.QEvent)(event.UnsafePointer())))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QAudioProbe) OneventFilter(slot func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool) {
|
|
|
|
ok := C.QAudioProbe_override_virtual_eventFilter(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QAudioProbe_eventFilter
|
|
|
|
func miqt_exec_callback_QAudioProbe_eventFilter(self *C.QAudioProbe, cb C.intptr_t, watched *C.QObject, event *C.QEvent) C.bool {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(watched *qt.QObject, event *qt.QEvent) bool, watched *qt.QObject, event *qt.QEvent) bool)
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQObject(unsafe.Pointer(watched))
|
2024-12-07 15:02:06 +13:00
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
slotval2 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
virtualReturn := gofunc((&QAudioProbe{h: self}).callVirtualBase_EventFilter, slotval1, slotval2)
|
|
|
|
|
|
|
|
return (C.bool)(virtualReturn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) callVirtualBase_TimerEvent(event *qt.QTimerEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_virtualbase_timerEvent(unsafe.Pointer(this.h), (*C.QTimerEvent)(event.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QAudioProbe) OntimerEvent(slot func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent)) {
|
|
|
|
ok := C.QAudioProbe_override_virtual_timerEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QAudioProbe_timerEvent
|
|
|
|
func miqt_exec_callback_QAudioProbe_timerEvent(self *C.QAudioProbe, cb C.intptr_t, event *C.QTimerEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QTimerEvent), event *qt.QTimerEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := qt.UnsafeNewQTimerEvent(unsafe.Pointer(event))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QAudioProbe{h: self}).callVirtualBase_TimerEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) callVirtualBase_ChildEvent(event *qt.QChildEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_virtualbase_childEvent(unsafe.Pointer(this.h), (*C.QChildEvent)(event.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QAudioProbe) OnchildEvent(slot func(super func(event *qt.QChildEvent), event *qt.QChildEvent)) {
|
|
|
|
ok := C.QAudioProbe_override_virtual_childEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QAudioProbe_childEvent
|
|
|
|
func miqt_exec_callback_QAudioProbe_childEvent(self *C.QAudioProbe, cb C.intptr_t, event *C.QChildEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QChildEvent), event *qt.QChildEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
2024-12-07 17:15:57 +13:00
|
|
|
slotval1 := qt.UnsafeNewQChildEvent(unsafe.Pointer(event))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
gofunc((&QAudioProbe{h: self}).callVirtualBase_ChildEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) callVirtualBase_CustomEvent(event *qt.QEvent) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_virtualbase_customEvent(unsafe.Pointer(this.h), (*C.QEvent)(event.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QAudioProbe) OncustomEvent(slot func(super func(event *qt.QEvent), event *qt.QEvent)) {
|
|
|
|
ok := C.QAudioProbe_override_virtual_customEvent(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QAudioProbe_customEvent
|
|
|
|
func miqt_exec_callback_QAudioProbe_customEvent(self *C.QAudioProbe, cb C.intptr_t, event *C.QEvent) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(event *qt.QEvent), event *qt.QEvent))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQEvent(unsafe.Pointer(event))
|
|
|
|
|
|
|
|
gofunc((&QAudioProbe{h: self}).callVirtualBase_CustomEvent, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) callVirtualBase_ConnectNotify(signal *qt.QMetaMethod) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_virtualbase_connectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QAudioProbe) OnconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
|
|
|
|
ok := C.QAudioProbe_override_virtual_connectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QAudioProbe_connectNotify
|
|
|
|
func miqt_exec_callback_QAudioProbe_connectNotify(self *C.QAudioProbe, cb C.intptr_t, signal *C.QMetaMethod) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
|
|
|
|
|
|
|
|
gofunc((&QAudioProbe{h: self}).callVirtualBase_ConnectNotify, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
func (this *QAudioProbe) callVirtualBase_DisconnectNotify(signal *qt.QMetaMethod) {
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_virtualbase_disconnectNotify(unsafe.Pointer(this.h), (*C.QMetaMethod)(signal.UnsafePointer()))
|
2024-11-19 19:29:06 +13:00
|
|
|
|
|
|
|
}
|
2025-02-01 13:45:16 +13:00
|
|
|
func (this *QAudioProbe) OndisconnectNotify(slot func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod)) {
|
|
|
|
ok := C.QAudioProbe_override_virtual_disconnectNotify(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)))
|
2025-01-18 17:57:48 +13:00
|
|
|
if !ok {
|
2024-12-07 14:43:28 +13:00
|
|
|
panic("miqt: can only override virtual methods for directly constructed types")
|
|
|
|
}
|
2024-11-19 19:29:06 +13:00
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
//export miqt_exec_callback_QAudioProbe_disconnectNotify
|
|
|
|
func miqt_exec_callback_QAudioProbe_disconnectNotify(self *C.QAudioProbe, cb C.intptr_t, signal *C.QMetaMethod) {
|
2024-11-19 19:29:06 +13:00
|
|
|
gofunc, ok := cgo.Handle(cb).Value().(func(super func(signal *qt.QMetaMethod), signal *qt.QMetaMethod))
|
|
|
|
if !ok {
|
|
|
|
panic("miqt: callback of non-callback type (heap corruption?)")
|
|
|
|
}
|
|
|
|
|
|
|
|
// Convert all CABI parameters to Go parameters
|
|
|
|
slotval1 := qt.UnsafeNewQMetaMethod(unsafe.Pointer(signal))
|
|
|
|
|
|
|
|
gofunc((&QAudioProbe{h: self}).callVirtualBase_DisconnectNotify, slotval1)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-11-04 23:15:32 +13:00
|
|
|
// Delete this object from C++ memory.
|
|
|
|
func (this *QAudioProbe) Delete() {
|
2025-02-01 13:45:16 +13:00
|
|
|
C.QAudioProbe_delete(this.h)
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
// GoGC adds a Go Finalizer to this pointer, so that it will be deleted
|
|
|
|
// from C++ memory once it is unreachable from Go memory.
|
|
|
|
func (this *QAudioProbe) GoGC() {
|
|
|
|
runtime.SetFinalizer(this, func(this *QAudioProbe) {
|
|
|
|
this.Delete()
|
|
|
|
runtime.KeepAlive(this.h)
|
|
|
|
})
|
|
|
|
}
|