Skip to content

Commit

Permalink
Add the Init method to the class and add some debug for future use
Browse files Browse the repository at this point in the history
for Photon only.
  • Loading branch information
Jerry.Kirk%Nexwarecorp.com authored and Jerry.Kirk%Nexwarecorp.com committed Jan 25, 2000
1 parent 71009b6 commit bbcb26e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion widget/src/photon/nsSound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ NS_IMPL_ISUPPORTS(nsSound, nsCOMTypeInfo<nsISound>::GetIID());
////////////////////////////////////////////////////////////////////////
nsSound::nsSound()
{
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsSound::nsSound this=<%p>\n", this));

NS_INIT_REFCNT();
}

nsSound::~nsSound()
{
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsSound::~nsSound this=<%p>\n", this));

}

Expand All @@ -61,14 +64,16 @@ nsresult NS_NewSound(nsISound** aSound)
// not currently used.. may go away
NS_METHOD nsSound::Init(void)
{
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsSound::Init this=<%p>\n", this));

return NS_OK;
}


NS_METHOD nsSound::Beep()
{
::PtBeep();
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsSound::Beep - Not Implemented\n"));
PR_LOG(PhWidLog, PR_LOG_DEBUG, ("nsSound::Beep this=<%p>\n", this));
return NS_OK;
}

Expand Down
3 changes: 2 additions & 1 deletion widget/src/photon/nsSound.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ class nsSound : public nsISound {

nsSound();
virtual ~nsSound();

nsresult Init();

NS_DECL_ISUPPORTS
NS_DECL_NSISOUND
};
Expand Down

0 comments on commit bbcb26e

Please sign in to comment.