NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 28 29 30 31 32 … 93 Next »
PlayAudioFile() throws exception

 
  • 0 Vote(s) - 0 Average
PlayAudioFile() throws exception
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2008-10-09, 09:50 PM
One user of the DVB-T Radio plugin is having trouble getting it to work - the original problem (there have been others since Sad ) is that PlayAudioFile() throws an exception when trying to play the buffer mp3 file. From the user's DvbtrServiceMessenger.log...
Code:
06/10/2008 23:32:09.050 Invoking PlayAudioFile() for I:\Videos\Recordings\gbnetradio-0.mp3
06/10/2008 23:32:09.191 Play2() threw exception: Object reference not set to an instance of an object.   at DirectShowPlayerBase.playMusicFile(DirectShowPlayerBase* , Char* filename, HWND__* ownerHwnd)
   at NativeUtilities.MediaHelper.playMusicFile(String filename, Form form)
   at GBPVRX2.Players.x6a72974b4271f25b.x40e14381fcc044ba(String x2083fea7eed1486c)
   at GBPVRX2.Players.xa5ae5b3a73744aae.x826e5d374a1e5ab9(String x8b1d9e3189e6e73d)
   at GBPVRX2.xdd215986d9a64c86.PlayAudioFile(String filename)
   at BGowland.DvbtrLib.DvbtrClient.Play2(String LCN, Boolean UseLivePlayback) in C:\Documents and Settings\gbpvr\My Documents\Visual Studio 2005\Projects\DVB-T Radio\DvbtrLib\DvbtrClient.cs:line 206

The relevant code...
Code:
if (!UseLivePlayback)
{
    Log.WriteLine("Invoking PlayAudioFile() for " + gbRecordingsDir + BufferFile);
    PluginHelperFactory.getPluginHelper().PlayAudioFile(gbRecordingsDir + BufferFile);
    Log.WriteLine("PlayAudioFile() invoked.");
}
The playback graph is built and runs correctly and the gbnetradio-X.mp3 file is created and can be played using an external media player.

Drive I: is a local NTFS drive and the folder is the user's normal GB-PVR recordings folder. The OS is Vista but I know of at least two Vista users who don't have problems. What could be the reason for an 'Object reference not set...' exception with PlayAudioFile()?

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2008-10-09, 09:53 PM
First thing I'd get them to try is taking a copy of the .mp3 file (so its not "in use"), then run graphedit and try using the "Render media file" option to see if they end up with a graph that can play.

Other than that, can you get them to post a set of lots?
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2008-10-09, 10:37 PM
Thanks - hadn't thought of rendering the mp3 to what the graph looks like.

I'll ask him to do some more tests and get another set of logs.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Puzzling exception bgowland 2 1,672 2012-03-07, 02:30 AM
Last Post: bgowland
  PlayAudioFile() 0KB file bug bgowland 1 1,553 2009-04-25, 09:27 PM
Last Post: sub
  PlayAudioFile() and streaming client bgowland 2 1,673 2008-06-12, 12:30 PM
Last Post: bgowland
  Error initializing event plugin: Exception has been thrown by the target of an invoca ralphy 1 1,980 2008-01-21, 11:23 PM
Last Post: ralphy
  Exception when querying gbpvr.db3 bgowland 5 1,990 2007-12-16, 07:47 PM
Last Post: bgowland
  Database locked exception bgowland 3 2,002 2007-10-20, 09:24 PM
Last Post: bgowland
  Unhandled exception handling in GB-PVR ubu 7 2,272 2007-02-18, 02:54 AM
Last Post: sub
  pluginHelper.ReturnToMainMenu(); throws System.OutOfMemoryException: Out of memory. reven 6 2,537 2006-02-21, 08:13 PM
Last Post: reven
  exception when calling scheduledRecording.getProgramme().getTitle() (manual rec) betlit 2 1,348 2005-09-23, 03:01 PM
Last Post: betlit
  Playaudiofile vs addaudiofiletoqueue paulg 8 2,526 2005-09-19, 04:58 PM
Last Post: paulg

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode