I was thinking about doing this as well (until I discovered that we have no access to the music already on the phone).
Up vote 2 down vote favorite 1 share g+ share fb share tw.
WP7 Mango is making it possible to save custom ringtones from apps. That's great and all, but not if your source material is too long in length (ringtones must be I gather from other SO questions that audio encoding directly in silverlight is not really feasible. But I don't really want full encoding capabilities, just the ability to trim an existing already encoded file.
Any pointers? Silverlight windows-phone-7 link|improve this question asked Aug 4 '11 at 21:46InfinitiesLoop1,673513 60% accept rate.
1 You are probably going to need a library that can decode the file into an uncompressed stream, cut it up, the encode it again. If you can not find one for the Silverlight framework, have you considered making it a web service? – Chris Sainty Aug 4 '11 at 22:19 Yeah I thought of that... upvote for you.
But it would be costly in bandwidth to upload an entire song and return a part of it, not to mention slow. This is a free app from a hobby developer, hosting a service for it is a last resort... I hope. – InfinitiesLoop Aug 4 '11 at 22:23 Have you thought about extending the library for the ringtone so that you can display a full song, no limit to the length?
– Keeano Martin Sep 22 '11 at 15:13 Not sure what you mean... I can't extend the phone's native ringtone capabilities. The 40 second limit is part of the platform. – InfinitiesLoop Sep 22 '11 at 17:58.
I was thinking about doing this as well (until I discovered that we have no access to the music already on the phone). An mp3 should be pretty easy to do by checking the header (see here: mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm) and then using the bit rate and frame size to calculate the number of bytes to copy using BinaryReader and BinaryWriter. I haven't looked into wma but after glancing over the specifications it looks like it may be more complicated (specs: microsoft.com/download/en/details.aspx?d...).
Very helpful reply... let me know if you figure it out :) – InfinitiesLoop Oct 15 '11 at 4:38.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.