Clownacy / clownaudio

Sound engine that is suitable for video games and other multimedia applications.
zlib License
24 stars 2 forks source link

Stop using file paths for audio data input #2

Closed Clownacy closed 4 years ago

Clownacy commented 5 years ago

clownaudio shouldn't assume all audio data will be sent through file I/O - instead, it should support data being passed as memory buffers.

This will completely-break the file-type auto-detection, which relied on reading the file extension. It didn't work that great anyway: for example, '.ogg' specifies the Ogg container, but not what encoding format is used (Vorbis and FLAC are just two possibilities), so I'm not too upset about that. Maybe the user should specify the file format instead.

Clownacy commented 4 years ago

This has been addressed in the recent massive overhaul following v0.1's release.