22#ifndef SDL2PP_AUDIOSPEC_HH
23#define SDL2PP_AUDIOSPEC_HH
27#include <SDL2pp/Export.hh>
46class SDL2PP_EXPORT
AudioSpec :
public SDL_AudioSpec {
68 AudioSpec(
int freq, SDL_AudioFormat format, Uint8 channels, Uint16 samples);
116 const SDL_AudioSpec* Get()
const;
124 void MergeChanges(
const SDL_AudioSpec& obtained);
132 bool IsSameFormat(
const AudioSpec& other)
const;
Audio format specification.
Definition: AudioSpec.hh:46
AudioSpec(const AudioSpec &other)=delete
Deleted copy constructor.
AudioSpec(AudioSpec &&other)
Move constructor.
AudioSpec & operator=(const AudioSpec &other)=delete
Deleted assignment operator.
AudioSpec & operator=(AudioSpec &&other)
Move assignment operator.