cAudio 2.3.0
3d Audio Engine
Loading...
Searching...
No Matches
cRawAudioDecoderFactory.h
1// Copyright (c) 2008-2011 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones, Murat (wolfmanfx) Sari
2// This file is part of the "cAudio Engine"
3// For conditions of distribution and use, see copyright notice in cAudio.h
4
5#pragma once
6
7#include "cMutex.h"
8#include "cRawDecoder.h"
9#include "IAudioDecoderFactory.h"
10
11namespace cAudio
12{
14 {
15 public:
18
20 {
21 return CAUDIO_NEW cRawDecoder(stream, 22050, EAF_16BIT_MONO);
22 }
23
24 IAudioDecoder* CreateAudioDecoder(IDataSource* stream, unsigned int frequency = 22050, AudioFormats format = EAF_16BIT_MONO)
25 {
26 return CAUDIO_NEW cRawDecoder(stream, frequency, format);
27 }
28 };
29};
30
Interface for factories that create Audio Decoders for cAudio.
Interface for all Audio Decoders in cAudio.
Definition: IAudioDecoder.h:16
Interface for data providers in cAudio.
Definition: IDataSource.h:13
IAudioDecoder * CreateAudioDecoder(IDataSource *stream)
Returns an audio decoder.
Main namespace for the entire cAudio library.
Definition: cAudioCapture.h:16
AudioFormats
Enumeration of audio formats supported by the engine.
Definition: EAudioFormats.h:11