From s.tolstoyevski at gmail.com Wed Nov 4 09:08:00 2020 From: s.tolstoyevski at gmail.com (Sean) Date: Wed, 4 Nov 2020 17:08:00 +0300 Subject: [openal] Offtopic: How can I create buffers from encrypted files? Message-ID: Hello, I used OpenAL-Soft and libsndfile in my game. I have finished it now. I want to encrypt audio files. I'm thinking of doing this with AES. But I don't know how to create new buffers from encrypted files. I guess sndfile doesn't have a function to *decode* audio from sources other than disk. I don't know how all the big game companies store their audio data. I've done a lot of research on this subject. I could not find any resources. Can you please recommend a method for me? -- Sean * Email: seantolstoyevski at protonmail.com * GitHub: SeanTolstoyevski 👨‍🦯 I’m a software developer. I coding often Python, sometimes Go and rarely (C)/C++. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.kcat at gmail.com Wed Nov 4 09:23:54 2020 From: chris.kcat at gmail.com (Chris Robinson) Date: Wed, 4 Nov 2020 06:23:54 -0800 Subject: [openal] OpenAL Soft 1.21.0 released! Message-ID: <20201104062354.48aafbc5@cathouse> A new version has been tagged and uploaded: https://openal-soft.org/ Notable features in this release include the AL_SOFT_effect_target, AL_SOFT_events, and ALC_SOFT_loopback_bformat extensions, a lock-free real-time-safe mixer, improved memory use for mixing voices, improved spatialization quality for quad and 7.1 output, general quality improvements with HRTF and UHJ output, reintroduction of the modulation stage in reverb, support for surround sound with the SoundIO backend, along with a smattering of bug fixes. On Linux, real-time priority is now used by default on certain backends, for improved stability against skips and dropouts. This release also sees initial work on new features, like an Oboe backend for Android, convolution reverb, and a callback-based buffer source. There's also been a fair amount of cleanup toward separating the OpenAL API from the core mixer, so that the same code base can be used to implement other APIs. This isn't fully done yet, but it's getting ever-closer. If you encounter any issues or have any questions, please ask. Either here through email, on the Github issue tracker (at the Github repo ), or on IRC (#openal at irc.freenode.org). Thanks! From chris.kcat at gmail.com Wed Nov 4 10:31:05 2020 From: chris.kcat at gmail.com (Chris Robinson) Date: Wed, 4 Nov 2020 07:31:05 -0800 Subject: [openal] Offtopic: How can I create buffers from encrypted files? In-Reply-To: References: Message-ID: <20201104073105.6765a57d@cathouse> On Wed, 4 Nov 2020 17:08:00 +0300 Sean wrote: > Hello, > > I used OpenAL-Soft and libsndfile in my game. > I have finished it now. > I want to encrypt audio files. > I'm thinking of doing this with AES. > > But I don't know how to create new buffers from encrypted files. > I guess sndfile doesn't have a function to *decode* audio from > sources other than disk. OpenAL buffers only work with decoded PCM samples. If you have encrypted files, you'll need to decrypt them for libsndfile to handle, then the decoded PCM samples can be loaded into an OpenAL buffer like normal. libsndfile can use custom I/O methods if you need to decrypt files on the fly, see sf_open_virtual.