2024-11-17 19:21:37 +13:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_MULTIMEDIA_GEN_QAUDIOFORMAT_H
|
|
|
|
#define MIQT_QT_MULTIMEDIA_GEN_QAUDIOFORMAT_H
|
2024-11-04 23:15:32 +13:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#include "../../libmiqt/libmiqt.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QAudioFormat;
|
|
|
|
#else
|
|
|
|
typedef struct QAudioFormat QAudioFormat;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
QAudioFormat* QAudioFormat_new();
|
|
|
|
QAudioFormat* QAudioFormat_new2(QAudioFormat* other);
|
2025-02-01 13:45:16 +13:00
|
|
|
void QAudioFormat_operatorAssign(QAudioFormat* self, QAudioFormat* other);
|
|
|
|
bool QAudioFormat_operatorEqual(const QAudioFormat* self, QAudioFormat* other);
|
|
|
|
bool QAudioFormat_operatorNotEqual(const QAudioFormat* self, QAudioFormat* other);
|
|
|
|
bool QAudioFormat_isValid(const QAudioFormat* self);
|
|
|
|
void QAudioFormat_setSampleRate(QAudioFormat* self, int sampleRate);
|
|
|
|
int QAudioFormat_sampleRate(const QAudioFormat* self);
|
|
|
|
void QAudioFormat_setChannelCount(QAudioFormat* self, int channelCount);
|
|
|
|
int QAudioFormat_channelCount(const QAudioFormat* self);
|
|
|
|
void QAudioFormat_setSampleSize(QAudioFormat* self, int sampleSize);
|
|
|
|
int QAudioFormat_sampleSize(const QAudioFormat* self);
|
|
|
|
void QAudioFormat_setCodec(QAudioFormat* self, struct miqt_string codec);
|
|
|
|
struct miqt_string QAudioFormat_codec(const QAudioFormat* self);
|
|
|
|
void QAudioFormat_setByteOrder(QAudioFormat* self, int byteOrder);
|
|
|
|
int QAudioFormat_byteOrder(const QAudioFormat* self);
|
|
|
|
void QAudioFormat_setSampleType(QAudioFormat* self, int sampleType);
|
|
|
|
int QAudioFormat_sampleType(const QAudioFormat* self);
|
|
|
|
int QAudioFormat_bytesForDuration(const QAudioFormat* self, long long duration);
|
|
|
|
long long QAudioFormat_durationForBytes(const QAudioFormat* self, int byteCount);
|
|
|
|
int QAudioFormat_bytesForFrames(const QAudioFormat* self, int frameCount);
|
|
|
|
int QAudioFormat_framesForBytes(const QAudioFormat* self, int byteCount);
|
|
|
|
int QAudioFormat_framesForDuration(const QAudioFormat* self, long long duration);
|
|
|
|
long long QAudioFormat_durationForFrames(const QAudioFormat* self, int frameCount);
|
|
|
|
int QAudioFormat_bytesPerFrame(const QAudioFormat* self);
|
|
|
|
void QAudioFormat_delete(QAudioFormat* self);
|
2024-11-04 23:15:32 +13:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2025-02-01 13:45:16 +13:00
|
|
|
#endif
|
2024-11-04 23:15:32 +13:00
|
|
|
|
|
|
|
#endif
|