{"action":"created","issue":{"url":"https://api.github.com/repos/LaurentGomila/SFML/issues/822","labels_url":"https://api.github.com/repos/LaurentGomila/SFML/issues/822/labels{/name}","comments_url":"https://api.github.com/repos/LaurentGomila/SFML/issues/822/comments","events_url":"https://api.github.com/repos/LaurentGomila/SFML/issues/822/events","html_url":"https://github.com/LaurentGomila/SFML/issues/822","id":60743575,"number":822,"title":"sf::Music::openFromStream and sf::SoundBuffer::loadFromStream fails for non-flac files","user":{"login":"MorleyDev","id":1002358,"avatar_url":"https://avatars.githubusercontent.com/u/1002358?v=3","gravatar_id":"","url":"https://api.github.com/users/MorleyDev","html_url":"https://github.com/MorleyDev","followers_url":"https://api.github.com/users/MorleyDev/followers","following_url":"https://api.github.com/users/MorleyDev/following{/other_user}","gists_url":"https://api.github.com/users/MorleyDev/gists{/gist_id}","starred_url":"https://api.github.com/users/MorleyDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorleyDev/subscriptions","organizations_url":"https://api.github.com/users/MorleyDev/orgs","repos_url":"https://api.github.com/users/MorleyDev/repos","events_url":"https://api.github.com/users/MorleyDev/events{/privacy}","received_events_url":"https://api.github.com/users/MorleyDev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/LaurentGomila/SFML/labels/bug","name":"bug","color":"ff4242"},{"url":"https://api.github.com/repos/LaurentGomila/SFML/labels/m:sfml-audio","name":"m:sfml-audio","color":"cccccc"},{"url":"https://api.github.com/repos/LaurentGomila/SFML/labels/s:superseded","name":"s:superseded","color":"151B8D"}],"state":"closed","locked":false,"assignee":{"login":"eXpl0it3r","id":920861,"avatar_url":"https://avatars.githubusercontent.com/u/920861?v=3","gravatar_id":"","url":"https://api.github.com/users/eXpl0it3r","html_url":"https://github.com/eXpl0it3r","followers_url":"https://api.github.com/users/eXpl0it3r/followers","following_url":"https://api.github.com/users/eXpl0it3r/following{/other_user}","gists_url":"https://api.github.com/users/eXpl0it3r/gists{/gist_id}","starred_url":"https://api.github.com/users/eXpl0it3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXpl0it3r/subscriptions","organizations_url":"https://api.github.com/users/eXpl0it3r/orgs","repos_url":"https://api.github.com/users/eXpl0it3r/repos","events_url":"https://api.github.com/users/eXpl0it3r/events{/privacy}","received_events_url":"https://api.github.com/users/eXpl0it3r/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/LaurentGomila/SFML/milestones/9","html_url":"https://github.com/LaurentGomila/SFML/milestones/2.3","labels_url":"https://api.github.com/repos/LaurentGomila/SFML/milestones/9/labels","id":821119,"number":9,"title":"2.3","description":"","creator":{"login":"Bromeon","id":708488,"avatar_url":"https://avatars.githubusercontent.com/u/708488?v=3","gravatar_id":"","url":"https://api.github.com/users/Bromeon","html_url":"https://github.com/Bromeon","followers_url":"https://api.github.com/users/Bromeon/followers","following_url":"https://api.github.com/users/Bromeon/following{/other_user}","gists_url":"https://api.github.com/users/Bromeon/gists{/gist_id}","starred_url":"https://api.github.com/users/Bromeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bromeon/subscriptions","organizations_url":"https://api.github.com/users/Bromeon/orgs","repos_url":"https://api.github.com/users/Bromeon/repos","events_url":"https://api.github.com/users/Bromeon/events{/privacy}","received_events_url":"https://api.github.com/users/Bromeon/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":48,"state":"open","created_at":"2014-10-10T13:20:14Z","updated_at":"2015-03-12T14:59:33Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-03-11T22:52:04Z","updated_at":"2015-03-12T14:59:33Z","closed_at":"2015-03-12T14:59:33Z","body":"Loading Music or SoundBuffer through an InputStream fails, but loading straight from the file with openFromFile/loadFromFile succeeds.\r\n\r\nCode which recreates (orchestral.ogg from examples)\r\n```cpp\r\n#include <SFML/Audio.hpp>\r\n#include <SFML/System/FileInputStream.hpp>\r\n#include <iostream>\r\n\r\nint main() {\r\n    std::cout << \"Starting...\" << std::endl;\r\n    sf::Music fileMusic;\r\n    if (!fileMusic.openFromFile(\"orchestral.ogg\")) {\r\n        std::cerr << \"Too early boom?\"  << std::endl;\r\n        return 3;\r\n    }\r\n\r\n    sf::FileInputStream stream;\r\n    sf::Music music;\r\n    if (!stream.open(\"orchestral.ogg\")) {\r\n        std::cerr << \"Too early boom?\"  << std::endl;\r\n        return 2;\r\n    }\r\n    if (!music.openFromStream(stream)) {\r\n        std::cerr << \"BOOM!\"  << std::endl;\r\n        return 1;\r\n    }\r\n    std::cout << \"Done\" << std::endl;\r\n    return 0;\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/LaurentGomila/SFML/issues/comments/78496627","html_url":"https://github.com/LaurentGomila/SFML/issues/822#issuecomment-78496627","issue_url":"https://api.github.com/repos/LaurentGomila/SFML/issues/822","id":78496627,"user":{"login":"eXpl0it3r","id":920861,"avatar_url":"https://avatars.githubusercontent.com/u/920861?v=3","gravatar_id":"","url":"https://api.github.com/users/eXpl0it3r","html_url":"https://github.com/eXpl0it3r","followers_url":"https://api.github.com/users/eXpl0it3r/followers","following_url":"https://api.github.com/users/eXpl0it3r/following{/other_user}","gists_url":"https://api.github.com/users/eXpl0it3r/gists{/gist_id}","starred_url":"https://api.github.com/users/eXpl0it3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXpl0it3r/subscriptions","organizations_url":"https://api.github.com/users/eXpl0it3r/orgs","repos_url":"https://api.github.com/users/eXpl0it3r/repos","events_url":"https://api.github.com/users/eXpl0it3r/events{/privacy}","received_events_url":"https://api.github.com/users/eXpl0it3r/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T14:59:32Z","updated_at":"2015-03-12T14:59:32Z","body":"Superseded by #823 "}}