Get the Sound based on a specified WAV file

@param ref The reference to the WAV file in the classpath
@return The Sound read from the WAV file
@throws IOException Indicates a failure to load the WAV
518910
public Audio getWAV(String ref) throws IOException {
		return getWAV(ref, ResourceLoader.getResourceAsStream(ref));
	}
694851
public SoundImpl<?> createSound(AssetFileDescriptor fd) {
    PooledSound sound = new PooledSound(pool.load(fd, 1));
    loadingSounds.put(sound.soundId, sound);
    return sound;
  }
702011
public OvhPublicOffer offer_reference_GET(String reference) throws IOException {
		String qPath = "/dbaas/logs/offer/{reference}";
		StringBuilder sb = path(qPath, reference);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhPublicOffer.class);
	}
656159
public SoundImpl<?> createSound(FileDescriptor fd, long offset, long length) {
    PooledSound sound = new PooledSound(pool.load(fd, offset, length, 1));
    loadingSounds.put(sound.soundId, sound);
    return sound;
  }
558453
@Override
    public AudioFileFormat getAudioFileFormat(File file) throws UnsupportedAudioFileException, IOException {
        LOG.log(Level.FINE, "getAudioFileFormat(File file)");
        try (InputStream inputStream = new BufferedInputStream(new FileInputStream(file))) {
            inputStream.mark(MARK_LIMIT);
            getAudioFileFormat(inputStream);
            inputStream.reset();
            // Get Vorbis file info such as length in seconds.
            VorbisFile vf = new VorbisFile(file.getAbsolutePath());
            return getAudioFileFormat(inputStream, (int) file.length(), (int) Math.round(vf.time_total(-1) * 1000));
        } catch (SoundException e) {
            throw new IOException(e.getMessage());
        }
    }
1360958
public Annotation getRef() {
    if (ArgumentMention_Type.featOkTst && ((ArgumentMention_Type)jcasType).casFeat_ref == null)
      jcasType.jcas.throwFeatMissing("ref", "de.julielab.jules.types.ArgumentMention");
    return (Annotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((ArgumentMention_Type)jcasType).casFeatCode_ref)));}
348619
public SoundSettings getSoundSettings() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
        SoundSettings request = new SoundSettings();
        request.setType(IQ.Type.get);
        request.setTo(workgroupJID);

        return connection.createStanzaCollectorAndSend(request).nextResultOrThrow();
    }
1262237
public Audio getAIF(String ref, InputStream in) throws IOException {
		in = new BufferedInputStream(in);

		if (!soundWorks) {
			return new NullAudio();
		}
		if (!inited) {
			throw new RuntimeException("Can't load sounds until SoundStore is init(). Use the container init() method.");
		}
		if (deferred) {
			return new DeferredSound(ref, in, DeferredSound.AIF);
		}
		
		int buffer = -1;
		
		if (loaded.get(ref) != null) {
			buffer = ((Integer) loaded.get(ref)).intValue();
		} else {
			try {
				IntBuffer buf = BufferUtils.createIntBuffer(1);
				
				AiffData data = AiffData.create(in);
				AL10.alGenBuffers(buf);
				AL10.alBufferData(buf.get(0), data.format, data.data, data.samplerate);
				
				loaded.put(ref,new Integer(buf.get(0)));
				buffer = buf.get(0);
			} catch (Exception e) {
				Log.error(e);
				IOException x = new IOException("Failed to load: "+ref);
				x.initCause(e);
				
				throw x;
			}
		}
		
		if (buffer == -1) {
			throw new IOException("Unable to load: "+ref);
		}
		
		return new AudioImpl(this, buffer);
	}
686917
public OvhRefund refund_refundId_GET(String refundId) throws IOException {
		String qPath = "/me/refund/{refundId}";
		StringBuilder sb = path(qPath, refundId);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhRefund.class);
	}
320828
public Tune getTune(int referenceNumber) {
		Object o = m_tunes.get(new Integer(referenceNumber));
		if (o != null)
			return (Tune) o;
		else
			return null;
	}
133726
@Override
    public AudioInputStream getAudioInputStream(File file) throws UnsupportedAudioFileException, IOException {
        LOG.log(Level.FINE, "getAudioInputStream(File file)");
        InputStream inputStream = new FileInputStream(file);
        try {
            return getAudioInputStream(inputStream);
        } catch (UnsupportedAudioFileException | IOException e) {
            inputStream.close();
            throw e;
        }
    }
173775
private static void getFileListenersFromSystem(File pListenerFilePaths) throws IOException {
        if (!pListenerFilePaths.exists()) {
            java.nio.file.Files.createFile(pListenerFilePaths.toPath());
        } else {
            byte[] bytes = java.nio.file.Files.readAllBytes(pListenerFilePaths.toPath());

            ByteArrayDataInput input = ByteStreams.newDataInput(bytes);

            String key;
            while ((key = input.readLine()) != null) {
                String val = input.readLine();

                mFilelistenerToPaths.put(key, val);
            }
        }
    }
321185
public static function getRef($reference)
	{
		if (isset(self::$strings[$reference]))
		{
			return self::$strings[$reference];
		}

		return false;
	}
1188262
public Audio getOggStream(String ref) throws IOException {
		if (!soundWorks) {
			return new NullAudio();
		}
		
		setMOD(null);
		setStream(null);
		
		if (currentMusic != -1) {
			AL10.alSourceStop(sources.get(0));
		}
		
		getMusicSource();
		currentMusic = sources.get(0);
		
		return new StreamSound(new OpenALStreamPlayer(currentMusic, ref));
	}
698297
public static String getTypeFromRef(String ref) {
        Matcher matcher = match(ref);
        return matcher != null ? matcher.group(1) : null;
    }
1211481
URI generateOutputFile(final URI ref) {
        final FileInfo srcFi = job.getFileInfo(ref);
        final URI newSrc = srcFi.src.resolve(generateFilename());
        final URI tmp = tempFileNameScheme.generateTempFileName(newSrc);

        if (job.getFileInfo(tmp) == null) {
            job.add(new FileInfo.Builder()
                    .result(newSrc)
                    .uri(tmp)
                    .build());
        }

        return job.tempDirURI.resolve(tmp);
    }
1159132
public function readString() {

            $strref = $this->readU29();

            if (($strref & 0x01) == 0) {
                $strref = $strref >> 1;
                if ($strref>=count($this->storedStrings)) {
                    throw new Exception('Undefined string reference: ' . $strref);
                    return false;
                }
                return $this->storedStrings[$strref];
            } else {
                $strlen = $strref >> 1; 
                $str = $this->stream->readBuffer($strlen);
                if ($str != "") $this->storedStrings[] = $str;
                return $str;
            }

        }