| View previous topic :: View next topic |
| Author |
Message |
jellybeast
Joined: 02 Sep 2006 Posts: 2
|
Posted: Sat Sep 02, 2006 1:57 pm Post subject: libmad and pcm output |
|
|
Greetings,
I've been getting my feet wet with the psp toolchain and have built some test apps successfully. I'm aiming to build an mp3 player with audio book friendly features. I've been experimenting with libmad and I'm able to successfully load and play some test files.
I'm running into issues though when I try to play my low bitrate (audio book) mp3s. They play too fast. I have seen mention of this before in a couple of other locations, but no definitive answer. Anyhow, this being my first experience with audio encoding/decoding I'm a little confused about something: Can someone tell me if the PCM output from libmad needs to be at a certain bitrate or if it's interpreted by the PSP as a certain khz? Meaning, does the PSP expect the PCM samples to be in some certain format (e.g. at a specific rate or stereo/mono)? Do I need to up or down covert it maybe?
If I'm not phrasing the question correctly please excuse me (and correct) - as I said I'm new to audio programming and the associated terminology.
Thanks! |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Sat Sep 02, 2006 8:01 pm Post subject: |
|
|
The PSP can only handle 44100Hz samples, so if your media is a different sampling rate, you'd need to convert it. For 22050Hz simple sample doubling is enough, for other bitrates you'd probably need a better interpolation approach. _________________ <Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl |
|
| Back to top |
|
 |
jellybeast
Joined: 02 Sep 2006 Posts: 2
|
Posted: Sun Sep 03, 2006 5:29 am Post subject: |
|
|
| Raphael wrote: | | The PSP can only handle 44100Hz samples, |
Thanks! I'm assuming 44100Hz stereo - correct? |
|
| Back to top |
|
 |
siberianstar
Joined: 22 Jun 2006 Posts: 70
|
Posted: Sun Sep 03, 2006 11:39 am Post subject: |
|
|
| Yes, for mono just give the same sample two times. |
|
| Back to top |
|
 |
|