Restored opus build since WebM needs it, but disabled it from code.
This commit is contained in:
parent
021f3c924b
commit
e1da261844
@ -1,10 +1,5 @@
|
|||||||
def can_build(platform):
|
def can_build(platform):
|
||||||
# Sorry guys, do not enable this unless you can figure out a way
|
return True
|
||||||
# to get Opus to not do any memory allocation or system calls
|
|
||||||
# in the audio thread.
|
|
||||||
# Currently the implementation even reads files from the audio thread,
|
|
||||||
# and this is not how audio programming works.
|
|
||||||
return False
|
|
||||||
|
|
||||||
def configure(env):
|
def configure(env):
|
||||||
pass
|
pass
|
||||||
|
@ -34,13 +34,18 @@
|
|||||||
static ResourceFormatLoaderAudioStreamOpus *opus_stream_loader = NULL;
|
static ResourceFormatLoaderAudioStreamOpus *opus_stream_loader = NULL;
|
||||||
|
|
||||||
void register_opus_types() {
|
void register_opus_types() {
|
||||||
|
// Sorry guys, do not enable this unless you can figure out a way
|
||||||
opus_stream_loader = memnew(ResourceFormatLoaderAudioStreamOpus);
|
// to get Opus to not do any memory allocation or system calls
|
||||||
ResourceLoader::add_resource_format_loader(opus_stream_loader);
|
// in the audio thread.
|
||||||
ClassDB::register_class<AudioStreamOpus>();
|
// Currently the implementation even reads files from the audio thread,
|
||||||
|
// and this is not how audio programming works.
|
||||||
|
|
||||||
|
//opus_stream_loader = memnew(ResourceFormatLoaderAudioStreamOpus);
|
||||||
|
//ResourceLoader::add_resource_format_loader(opus_stream_loader);
|
||||||
|
//ClassDB::register_class<AudioStreamOpus>();
|
||||||
}
|
}
|
||||||
|
|
||||||
void unregister_opus_types() {
|
void unregister_opus_types() {
|
||||||
|
|
||||||
memdelete(opus_stream_loader);
|
//memdelete(opus_stream_loader);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user