{"action":"created","issue":{"url":"https://api.github.com/repos/ScottMichaud/AudioSampleLoader/issues/1","labels_url":"https://api.github.com/repos/ScottMichaud/AudioSampleLoader/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ScottMichaud/AudioSampleLoader/issues/1/comments","events_url":"https://api.github.com/repos/ScottMichaud/AudioSampleLoader/issues/1/events","html_url":"https://github.com/ScottMichaud/AudioSampleLoader/issues/1","id":114544733,"number":1,"title":"Can this library actual decode mp3 data?","user":{"login":"nampdn","id":15364911,"avatar_url":"https://avatars.githubusercontent.com/u/15364911?v=3","gravatar_id":"","url":"https://api.github.com/users/nampdn","html_url":"https://github.com/nampdn","followers_url":"https://api.github.com/users/nampdn/followers","following_url":"https://api.github.com/users/nampdn/following{/other_user}","gists_url":"https://api.github.com/users/nampdn/gists{/gist_id}","starred_url":"https://api.github.com/users/nampdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nampdn/subscriptions","organizations_url":"https://api.github.com/users/nampdn/orgs","repos_url":"https://api.github.com/users/nampdn/repos","events_url":"https://api.github.com/users/nampdn/events{/privacy}","received_events_url":"https://api.github.com/users/nampdn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-02T08:02:46Z","updated_at":"2015-11-03T05:21:43Z","closed_at":null,"body":"I want to decode MP3 player on the browser, will this help that?\r\n"},"comment":{"url":"https://api.github.com/repos/ScottMichaud/AudioSampleLoader/issues/comments/153243937","html_url":"https://github.com/ScottMichaud/AudioSampleLoader/issues/1#issuecomment-153243937","issue_url":"https://api.github.com/repos/ScottMichaud/AudioSampleLoader/issues/1","id":153243937,"user":{"login":"ScottMichaud","id":2958972,"avatar_url":"https://avatars.githubusercontent.com/u/2958972?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottMichaud","html_url":"https://github.com/ScottMichaud","followers_url":"https://api.github.com/users/ScottMichaud/followers","following_url":"https://api.github.com/users/ScottMichaud/following{/other_user}","gists_url":"https://api.github.com/users/ScottMichaud/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottMichaud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottMichaud/subscriptions","organizations_url":"https://api.github.com/users/ScottMichaud/orgs","repos_url":"https://api.github.com/users/ScottMichaud/repos","events_url":"https://api.github.com/users/ScottMichaud/events{/privacy}","received_events_url":"https://api.github.com/users/ScottMichaud/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T05:21:43Z","updated_at":"2015-11-03T05:21:43Z","body":"Okay, it sounds like AudioSampleLoader won't help your situation. It doesn't modify the file, and it's not designed to let you modify the blob before it sends it to Web Audio API.\r\n\r\nIts goal is to reduce the loading of audio sources to a single step. For instance, a game needs to grab a batch of footstep/jump/movement sounds or something.\r\n\r\nIt sounds like you need to use FileReader API.\r\nhttps://developer.mozilla.org/en-US/docs/Web/API/FileReader\r\n\r\nIf I understand correctly, you should be able to get an ArrayBuffer representing your file, do your logic (XOR) to the ArrayBuffer, then pass it to an AudioContext's decodeAudioData() to create your AudioBuffer."}}