Nsound
0.9.4
|
#include <Nsound/Nsound.h>
#include <Nsound/AudioBackend.h>
#include <Nsound/AudioBackendLibao.h>
#include <Nsound/AudioBackendLibportaudio.h>
#include <Nsound/AudioBackendType.h>
#include <Nsound/AudioPlayback.h>
#include <Nsound/AudioStream.h>
#include <Nsound/Buffer.h>
#include <Nsound/GuitarBass.h>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
Go to the source code of this file.
Functions | |
AudioBackend * | allocate_backend (const AudioBackendType &type, const uint32 sample_rate, const uint32 channels, const uint32 bits_per_sample) |
template<typename T > | |
void | play_int (AudioBackend *backend, const AudioStream &a, const float64 &scale) |
template<typename T > | |
void | play_int (AudioBackend *backend, const Buffer &b, const float64 &scale) |
template<typename T > | |
void | _play (AudioPlayback *pb, AudioBackend **be, const T &audio) |
std::string | mylower (const std::string &x) |
AudioBackend* allocate_backend | ( | const AudioBackendType & | type, |
const uint32 | sample_rate, | ||
const uint32 | channels, | ||
const uint32 | bits_per_sample | ||
) |
Definition at line 65 of file AudioPlayback.cc.
References Nsound::BACKEND_TYPE_LIBAO, Nsound::BACKEND_TYPE_LIBPORTAUDIO, and Nsound::BACKEND_TYPE_NONE.
Referenced by Nsound::AudioPlayback::AudioPlayback(), Nsound::AudioPlayback::initialize(), and Nsound::AudioPlayback::scanDevices().
void play_int | ( | AudioBackend * | backend, |
const AudioStream & | a, | ||
const float64 & | scale | ||
) |
Definition at line 317 of file AudioPlayback.cc.
References Nsound::AudioBackend::getChannels(), Nsound::AudioStream::getLength(), Nsound::AudioStream::getNChannels(), M_THROW, and Nsound::AudioBackend::play().
void play_int | ( | AudioBackend * | backend, |
const Buffer & | b, | ||
const float64 & | scale | ||
) |
Definition at line 377 of file AudioPlayback.cc.
References Nsound::AudioBackend::getChannels(), Nsound::Buffer::getLength(), and Nsound::AudioBackend::play().
void _play | ( | AudioPlayback * | pb, |
AudioBackend ** | be, | ||
const T & | audio | ||
) |
Definition at line 407 of file AudioPlayback.cc.
References Nsound::AudioPlayback::initialize(), and M_THROW.
std::string mylower | ( | const std::string & | x | ) |
Definition at line 555 of file AudioPlayback.cc.
Referenced by Nsound::use().