title: How to expose class members or how to implement method acting on those members
body: <p>I am trying to stop a sound from another class.
  As soon as the application opens the sound starts to play and is set to play on a loop unless the 'User' changes the settings and turns sound to OFF.</p>
  
  <p>This works but only on start up of the application where it checks to see if the settings sound is set to 'ON/OFF' but I would like if it would do it when changed in the settings.</p>
  
  <p>This is what I have so far...</p>
  
  <p><strong>FirstClass</strong></p>
  
  <pre><code>// grab the path to the caf file
  NSString *soundFilePath =
  [[NSBundle mainBundle] pathForResource: @"Menu_Loop"
                                  ofType: @"mp3"];
  NSURL *fileURL = [[NSURL alloc] initFileURLWithPath: soundFilePath];
  // create a new AVAudioPlayer initialized with the URL to the file
  AVAudioPlayer *newPlayer =
  [[AVAudioPlayer alloc] initWithContentsOfURL: fileURL
                                         error: nil];
  [fileURL release];
  // set our ivar equal to the new player
  self.player = newPlayer;
  [newPlayer release];
  // preloads buffers, gets ready to play
  [player prepareToPlay];
  player.numberOfLoops = -1; // Loop indefinately
  if ([SoundSwitch isEqualToString:@"1"]){
  [self.player play]; // Plays the sound
  }else{
  [self.player stop]; // Stops the sound
  }
  </code></pre>
  
  <p>This plays the sound.
  and if I wanted to stop it simply:</p>
  
  <pre><code>[self.player stop]
  </code></pre>
  
  <p>But this only works in the same class how would I get it to work in another?</p>