tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

SoundTouchFactory.cpp (762B)


      1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim:set ts=2 sw=2 sts=2 et cindent: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #include <soundtouch/SoundTouch.h>
      8 
      9 extern "C" namespace soundtouch
     10 {
     11 
     12 soundtouch::SoundTouch*
     13 createSoundTouchObj()
     14 {
     15  return new soundtouch::SoundTouch();
     16 }
     17 
     18 void
     19 destroySoundTouchObj(soundtouch::SoundTouch* aObj)
     20 {
     21  // SoundTouch runs deletes in its destructor, meaning they need to be run in
     22  // the DLL context. Gecko should send its SoundTouch obj pointers here to be
     23  // cleaned up.
     24  if (aObj) {
     25    delete aObj;
     26  }
     27 }
     28 
     29 }