Set filename in ZSM backend

This commit is contained in:
Zachary Hall 2024-10-19 10:42:24 -07:00
parent 51d14cefa1
commit 150851f2c5

View file

@ -39,6 +39,7 @@ std::vector<Property> ZsmBackend::get_property_list() {
} }
void ZsmBackend::load(const char *filename) { void ZsmBackend::load(const char *filename) {
memset(&spec, 0, sizeof(spec)); memset(&spec, 0, sizeof(spec));
current_file = filename;
spec.format = AUDIO_S16SYS; spec.format = AUDIO_S16SYS;
spec.samples = 100; spec.samples = 100;
spec.channels = 2; spec.channels = 2;