{"action":"created","issue":{"url":"https://api.github.com/repos/processing/p5.js-sound/issues/110","repository_url":"https://api.github.com/repos/processing/p5.js-sound","labels_url":"https://api.github.com/repos/processing/p5.js-sound/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/processing/p5.js-sound/issues/110/comments","events_url":"https://api.github.com/repos/processing/p5.js-sound/issues/110/events","html_url":"https://github.com/processing/p5.js-sound/issues/110","id":146373666,"number":110,"title":"saveSound in Safari ","user":{"login":"p1nh0","id":1586764,"avatar_url":"https://avatars.githubusercontent.com/u/1586764?v=3","gravatar_id":"","url":"https://api.github.com/users/p1nh0","html_url":"https://github.com/p1nh0","followers_url":"https://api.github.com/users/p1nh0/followers","following_url":"https://api.github.com/users/p1nh0/following{/other_user}","gists_url":"https://api.github.com/users/p1nh0/gists{/gist_id}","starred_url":"https://api.github.com/users/p1nh0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p1nh0/subscriptions","organizations_url":"https://api.github.com/users/p1nh0/orgs","repos_url":"https://api.github.com/users/p1nh0/repos","events_url":"https://api.github.com/users/p1nh0/events{/privacy}","received_events_url":"https://api.github.com/users/p1nh0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-06T16:59:11Z","updated_at":"2016-04-07T00:13:41Z","closed_at":null,"body":"When saving an audio file to disk in Safari a pop-up window appears with the following text:\r\n\r\nHello, Safari user! To download this file...\r\n1. Go to File --> Save As.\r\n2. Choose \"Page Source\" as the Format.\r\n3. Name it with this extension: .\"wav\"\r\n\r\nThis forces the user to leave the current html page, jumping to a page where the source code represents the audio file to save. The user then has to save the source code and add the .wav extension to it...\r\n\r\nIs there any workaround ?\r\n\r\nThanks in advance,\r\nTiago Ângelo"},"comment":{"url":"https://api.github.com/repos/processing/p5.js-sound/issues/comments/206628437","html_url":"https://github.com/processing/p5.js-sound/issues/110#issuecomment-206628437","issue_url":"https://api.github.com/repos/processing/p5.js-sound/issues/110","id":206628437,"user":{"login":"therewasaguy","id":504124,"avatar_url":"https://avatars.githubusercontent.com/u/504124?v=3","gravatar_id":"","url":"https://api.github.com/users/therewasaguy","html_url":"https://github.com/therewasaguy","followers_url":"https://api.github.com/users/therewasaguy/followers","following_url":"https://api.github.com/users/therewasaguy/following{/other_user}","gists_url":"https://api.github.com/users/therewasaguy/gists{/gist_id}","starred_url":"https://api.github.com/users/therewasaguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therewasaguy/subscriptions","organizations_url":"https://api.github.com/users/therewasaguy/orgs","repos_url":"https://api.github.com/users/therewasaguy/repos","events_url":"https://api.github.com/users/therewasaguy/events{/privacy}","received_events_url":"https://api.github.com/users/therewasaguy/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T00:13:41Z","updated_at":"2016-04-07T00:13:41Z","body":"Each browser handles saving differently, and last I checked this was the best way in Safari.\r\n\r\nThe pop-up alert is not a good idea, though..\r\n\r\nThis is the code in the p5 core library that causes the alert to occur: https://github.com/processing/p5.js/blob/8041e8fac8ce0df0f00c8bc3ca1f866766568dac/src/io/files.js#L1368\r\n\r\nLet's get rid of it"}}