Monday 19 December 2011

WP7 Microsoft.Phone.BackgroundAudio.AudioTrack.Tag String Length Limit

This is a bit of an odd one, I found out that the AudioTrack.Tag string property has a limit of 2047, any more than this and an exception is thrown when the AudioTrack object is assigned to BackgroundAudioPlayer.Instance.Track:

HRESULT = 0x8007007A

3 comments:

  1. Thanks man, you made my day!

    ReplyDelete
  2. Just tripped over this myself with Windows Phone 7.8. Looks like you are the only guy on the internet that has documented it though Geoff. Well done. Saved me a shed load of time (and grief) chasing this down further.
    regards
    Bill

    ReplyDelete
  3. Glad to help :-) I guess it's 2048 bytes which is a 2047 char null terminated string

    ReplyDelete