You are not logged in.
Hello, I'm trying to compile & play some s3m tunes with a s3m mod player I wrote while back.
When I wrote it I was still using Ubuntu, and it worked very well on my ubuntu machine. On Arch, the same program still compiles but for some reason it doesn't seem to work. The sound is very distorted.
Could you help me?
The player can be downloaded from
https://github.com/jussihi/playd
Thanks in advance!
Last edited by jussih (2017-11-13 18:04:55)
Offline
Please edit your thread title to one that actually describes your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post
Not a Programming issue, moving to NC...
Offline
Please edit your thread title to one that actually describes your issue: https://wiki.archlinux.org/index.php/Co … ow_to_post
Not a Programming issue, moving to NC...
Sorry, but how is this not a programming issue?
For some reason the ALSA interface implementation makes the sound very distorted - The interface I've written can be found from here: https://github.com/jussihi/playd/blob/m … Player.cpp
I can get proper audio output from spotify etc... But my own program does not playback properly. And it is written in C/C++. I think it is programming related problem.
Offline
I moved it to Newbie Corner because your post contains no useful information. You expect the community to download, compile your application and then attempt to reproduce your issue, but you can't even be bothered making an effort to provide basic debugging information?
I asked you to change the title, politely.
Offline
I moved it to Newbie Corner because your post contains no useful information. You expect the community to download, compile your application and then attempt to reproduce your issue, but you can't even be bothered making an effort to provide basic debugging information?
I asked you to change the title, politely.
Ok, I edited the title. It was a bit vague I must admit.
For the debugging information I can't really supply any. I'm just wondering if it is a hardware issue, that's why I would love to hear if someone else could also compile it on their hardware and try to run it. I've tried to run it with valgrind, debugged with gdb and it doesn't seem to give any (memory) errors while initializing the ALSA interface.
I'm using 1024 byte buffer (stores 1024 8 bit smaples obviously). I've tried enlarging the buffer size but there was no change; distortion was still present.
I'm very happy to hear new debugging methods, because I'm completely lost here. Thanks for your effort for replying. I appreciate it a lot and I'm always open to learn more
Last edited by jussih (2017-11-13 18:09:21)
Offline
I'd start by looking at the primary differences between Ubuntu and Arch: library versions and any upstream changes. Also check if they build any of the components with specific flags etc.
I know SFA about audio, so I can't be much help. Thanks for changing the title: that is much more helpful.
Offline
I'd start by looking at the primary differences between Ubuntu and Arch: library versions and any upstream changes. Also check if they build any of the components with specific flags etc.
I know SFA about audio, so I can't be much help. Thanks for changing the title: that is much more helpful.
It was problem with the 8-bit integer values. I was feeding the card with unsigned values (0-255) and the card was expecting -128 - 127.
Weird that ubuntu doesn't seem to mind when inputting the values wrong. But lesson learned once again. Happy to have it working now
Offline