View previous topic :: View next topic |
Author |
Message |
yajforforum n00b
Joined: 03 Sep 2014 Posts: 2
|
Posted: Wed Sep 03, 2014 10:39 am Post subject: WMA/MP3 playback |
|
|
hey guys..
I try to playback wma and mp3 in my custom board. Alsa uses default sampling rate as 48000. I have files of 44.1K. I have udpated the rate in .asoundrc and /etc/asound.conf files.
But still playbakis 48K. So it is chip munk effect taken place. How to find the location of files, how these config files are overtaken. |
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
yajforforum n00b
Joined: 03 Sep 2014 Posts: 2
|
Posted: Thu Sep 04, 2014 9:03 am Post subject: |
|
|
custom board is ARM based Marvell kit board(sorry thats all I can open due to confidential matters). I tried playing mplayer, mpg mp3 player and aplay(for wav). Wav also has same effect.
As I mentioned earlier, I did modifications in .asoundrc and /etc/asound.conf. Even changing the rate using plugin, it did not help. Some times wav playback is correct immediately after rebooting the board. |
|
Back to top |
|
|
fernan82 n00b
Joined: 24 Jul 2014 Posts: 70
|
Posted: Sun Sep 07, 2014 1:57 am Post subject: |
|
|
Did you triied the --format= and --rate= with aplay? You can try:
Code: |
aplay -f cd file.wav
|
where -f cd is shortcut for 16-bit, little endian, 44100 sps, stereo. If that doesn't work try playing with the --format and --rate options. Once you get it right with a wav file you can try something like this for mp3's with madplay:
Code: |
madplay file.mp3 | aplay -f cd
|
You'll need a way to figure out the mp3 samplerate first. I know you can do this with libmad but I'm not sure it can be done with the executable.
I'm not sure about other programs. |
|
Back to top |
|
|
|