Skip to content

VorbisFile.readFloat not implemented #1909

@ACrazyTown

Description

@ACrazyTown

Trying to use the readFloat() method on a lime.media.vorbis.VorbisFile will fail and always return 0 because it is not implemented in the native code:

value lime_vorbis_file_read_float (value vorbisFile, value pcmChannels, int samples) {
//Bytes bytes;
//bytes.Set (pcmChannels);
//
//int bitstream;
//
//OggVorbis_File* file = (OggVorbis_File*)(uintptr_t)val_data (vorbisFile);
//long result = ov_read_float (file, (char*)bytes.Data (), samples, &bitstream);
//
//alloc_field (readValue, id_bitstream, alloc_int (bitstream));
//alloc_field (readValue, id_returnValue, alloc_int (result));
//
//return readValue;
return alloc_null ();
}

HL_PRIM vdynamic* HL_NAME(hl_vorbis_file_read_float) (HL_CFFIPointer* vorbisFile, Bytes* pcmChannels, int samples) {
return NULL;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions