mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
minor refactor
This commit is contained in:
parent
2a8b750ad7
commit
8ff629e1cd
15 changed files with 120 additions and 107 deletions
|
|
@ -19,7 +19,7 @@ namespace audio {
|
|||
return pcm;
|
||||
}
|
||||
|
||||
Speaker* newInstance(int priority, int channel) const override {
|
||||
std::unique_ptr<Speaker> newInstance(int priority, int channel) const override {
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
|
|
@ -42,7 +42,7 @@ namespace audio {
|
|||
void bindSpeaker(speakerid_t speaker) override {
|
||||
}
|
||||
|
||||
Speaker* createSpeaker(bool loop, int channel) override{
|
||||
std::unique_ptr<Speaker> createSpeaker(bool loop, int channel) override {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
@ -65,8 +65,8 @@ namespace audio {
|
|||
public:
|
||||
~NoAudio() {}
|
||||
|
||||
Sound* createSound(std::shared_ptr<PCM> pcm, bool keepPCM) override;
|
||||
Stream* openStream(std::shared_ptr<PCMStream> stream, bool keepSource) override;
|
||||
std::unique_ptr<Sound> createSound(std::shared_ptr<PCM> pcm, bool keepPCM) override;
|
||||
std::unique_ptr<Stream> openStream(std::shared_ptr<PCMStream> stream, bool keepSource) override;
|
||||
|
||||
void setListener(
|
||||
glm::vec3 position,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue