Wikipedia:Reference desk/Archives/Computing/2015 June 23
Computing desk | ||
---|---|---|
< June 22 | << May | June | Jul >> | June 24 > |
Welcome to the Wikipedia Computing Reference Desk Archives |
---|
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages. |
June 23
[edit]How to install old versions of “Subway Surfers” on BlueStacks App Player
[edit]The widely popular game Subway Surfers is frequently updated, as you probably know; they do a different city every month, I think.
Do you know of a place where I can find .apk files for past cities that are compatible with BlueStacks App Player.
(N.B.: I am only interest on .apk files that work with the emulator, not on Android phones and tablets, which I do not have.) —24.228.117.156 (talk) 03:13, 23 June 2015 (UTC)
winsound help in python 3.4?
[edit]Hello. In my last post I said that I knew how to play a sound in python. Well I was mistaken. My method won't work. Here is what I am trying to do. First, I write the data to my wav file and patch the headers. Since I have used a BytesIO stream for the wave.open(f) instead of a file, I now set the BytesIO stream's position to 0 and write all the data to a string. Finally, I call "winsound.PlaySound(data, winsound.SND_MEMORY)" using the SND_MEMORY flag. Now every time I do this, it gives me an error saying, "RuntimeError: Failed to play sound." If I try to load an actual wav file into a FileIO stream and read all the data into a string, it still gives me the same error. And you have to put the data in a string because it will error out if it has anything other than a string for the data argument. What am I doing wrong? Thanks for your help in advance, —SGA314 I am not available on weekends (talk) 12:56, 23 June 2015 (UTC)
- This seems to be a bug in the winsound module. You can work around it by using ctypes.windll.winmm.PlaySoundA instead of winsound.PlaySound (and passing it a bytes, not a str). -- BenRG (talk) 07:53, 24 June 2015 (UTC)
- It works. Thank you so much. I had to get the arguments right but I did get it. Here is what I did for the arguments:
ctypes.windll.winmm.PlaySoundA(data, c_uint32(0), c_uint32(winsound.SND_MEMORY ))
- Thanks for all of your help, —SGA314 I am not available on weekends (talk) 13:59, 24 June 2015 (UTC)
Splatoon on PC
[edit]Why is Splatoon not on PC? — Preceding unsigned comment added by CdotHonline (talk • contribs) 19:14, 23 June 2015 (UTC)
- Because the developers made it for Wii U. Why? When they were developing the game, they decided that it wasn't something that they wanted to invest their time in. Will they possibly port it to PC in the future? Maybe. Nobody knows the future. Should you pick up every game for the Wii U at the store and ask "Why isn't this on PC!?"? No. You should learn that developers often choose a specific platform for their game and develop for that platform. 199.15.144.250 (talk) 20:06, 23 June 2015 (UTC)
- Because it was developed by Nintendo.
- Nintendo isn't interested in publishing games on competitor's hardware. (With very few minor exceptions.) ApLundell (talk) 05:13, 28 June 2015 (UTC)