Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VorbisFile.readFloat not implemented #1909

Open
ACrazyTown opened this issue Feb 17, 2025 · 0 comments
Open

VorbisFile.readFloat not implemented #1909

ACrazyTown opened this issue Feb 17, 2025 · 0 comments

Comments

@ACrazyTown
Copy link
Contributor

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant