mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Adapt platforms to AudioServer refactoring
Fixes compilation on Windows and likely other platforms (at least as far as AudioServer changes were concerned), though they were not tested.
This commit is contained in:
parent
6a3dae5be9
commit
7b059965e8
34 changed files with 123 additions and 316 deletions
|
|
@ -27,20 +27,14 @@
|
|||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
/*************************************************************************/
|
||||
#include "audio_driver_javascript.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#define MAX_NUMBER_INTERFACES 3
|
||||
#define MAX_NUMBER_OUTPUT_DEVICES 6
|
||||
|
||||
/* Structure for passing information to callback function */
|
||||
|
||||
|
||||
|
||||
//AudioDriverJavaScript* AudioDriverJavaScript::s_ad=NULL;
|
||||
|
||||
const char* AudioDriverJavaScript::get_name() const {
|
||||
|
|
@ -53,19 +47,23 @@ Error AudioDriverJavaScript::init(){
|
|||
return OK;
|
||||
|
||||
}
|
||||
|
||||
void AudioDriverJavaScript::start(){
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
int AudioDriverJavaScript::get_mix_rate() const {
|
||||
|
||||
return 44100;
|
||||
}
|
||||
AudioDriver::OutputFormat AudioDriverJavaScript::get_output_format() const{
|
||||
|
||||
return OUTPUT_STEREO;
|
||||
AudioDriver::SpeakerMode AudioDriverJavaScript::get_speaker_mode() const{
|
||||
|
||||
return SPEAKER_MODE_STEREO;
|
||||
}
|
||||
|
||||
void AudioDriverJavaScript::lock(){
|
||||
|
||||
/*
|
||||
|
|
@ -74,6 +72,7 @@ void AudioDriverJavaScript::lock(){
|
|||
*/
|
||||
|
||||
}
|
||||
|
||||
void AudioDriverJavaScript::unlock() {
|
||||
|
||||
/*
|
||||
|
|
@ -82,11 +81,11 @@ void AudioDriverJavaScript::unlock() {
|
|||
*/
|
||||
|
||||
}
|
||||
|
||||
void AudioDriverJavaScript::finish(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
AudioDriverJavaScript::AudioDriverJavaScript()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue