Skip to content

Instantly share code, notes, and snippets.

View andressbarajas's full-sized avatar

Andy Barajas andressbarajas

View GitHub Profile
@andressbarajas
andressbarajas / pcm_split.s
Created October 30, 2023 00:40
Functions to be used inside sep_data
! r4 buffer (4-byte aligned at least)
! r5 left channel (32-byte aligned)
! r6 right channel (32-byte aligned)
! r7 len (Must be multiple of 32)
!
! void snd_pcm16_split_bbh(uint32_t *data, uint32_t *left, uint32_t *right, uint32_t size);
!
_snd_pcm16_split_bbh:
mov #-5,r1
shad r1,r7
@andressbarajas
andressbarajas / LegacySecureStorage.cs
Last active September 10, 2022 07:28
Xamarin Essentials SecureStorage Value Extractor
// While updating my codebase to use .NET MAUI instead of Xamarin Forms, I had trouble accessing values I securely stored using
// Xamarin Essentials' SecureStorage class. The old keys I was using werent working for the new MAUI SecureStorage class. Here is a helper
// class that you can use to extract those old saved values. It uses the same Xamarin Essentials SecureStorage class code MINUS the Set functionality which leaves:
// Task<string> GetAsync(string key)
// bool RemoveKey(string key)
// void RemoveAll()
// IMPORTANT - Make sure you have an Entitlements.plist with the following:
// <key>keychain-access-groups</key>