Use values representing notes (multiply of 100) for low CPU load. Pitch shift cents, from -1200 (one octave down) to 1200 (one octave up). A value below 20 will be automatically set to 0. There is no auto-bpm detection inside, this must be set to a correct value for syncing. Will be applied after changing playbackRate or scratching. Default: 0.501f (the recommended value for low CPU load on older mobile devices, such as the first iPad). Will not time-stretch but resample below this playback rate. Default: 2.0f (the recommended value for low CPU load on older mobile devices, such as the first iPad). Will not time-stretch but resample above this playback rate. If true, jumps back and continues playback. How many times to retry if a HLS segment download fails. Default: -1 (the player wil not skip audio and the live stream starts at the first segment specified by the server). When connecting or reconnecting to a HLS live stream, the player will try to skip audio to maintain this latency. How many seconds ahead of the playback position to download. If true, then the player will automatically swtich between the HLS alternatives according to the available network bandwidth. If true and playbackRate is above 1.4f or below 0.6f, it will sync the tempo as half or double. Must be set to a correct value for syncing. Tells where the first beat is (the beatgrid starts). Default: false (stereo master mix output). If true and a Native Instruments STEMS file is loaded, output 4 stereo channels. Sets the quantum for quantized synchronization. Set the folder to store for temporary files. StartScratch (unsigned int slipMs, bool stopImmediately) SetReverse (bool reverse, unsigned int slipMs=0) SetPosition (double ms, bool andStop, bool synchronisedStart, bool forceDefaultQuantum=false, bool preferWaitingforSynchronisedStart=false) Reset the pitch bend offset to the beatgrid to zero. ProcessStereo (float *buffer, bool mix, unsigned int numberOfFrames, float volume=1.0f, double *jogParameter=0) Performs the last stage of STEMS processing, the master compressor and limiter. ProcessSTEMSMaster (float *input, float *output, unsigned int numberOfFrames, float volume=1.0f) ProcessMulti (float **buffers, bool mix, unsigned int numberOfFrames, float *volumes, double *jogParameter=0) PlaySynchronizedToPosition (double positionMs) Starts beat or tempo synchronized playback. Starts playback immediately without any synchronization. Starts on changes pitch bend (temporary playback rate change). PitchBend (float maxPercent, bool bendStretch, bool faster, unsigned int holdMs) Pause (float decelerateSeconds=0, unsigned int slipMs=0) Opens a HTTP Live Streaming stream with playback paused. OpenHLS (const char *url, Superpowered::httpRequest *customHTTPRequest=0) Open (const char *path, int offset, int length, Superpowered::httpRequest *customHTTPRequest=0, bool skipSilenceAtBeginning=false) Opens an audio file with playback paused. Open (const char *path, Superpowered::httpRequest *customHTTPRequest=0, bool skipSilenceAtBeginning=false) Call this after a media server reset or audio session interrupt to resume playback. More.Īpple's built-in codec may be used in some cases, such as decoding ALAC files. LoopBetween (double startMs, double endMs, bool jumpToStartMs, unsigned char pointID, bool synchronisedStart, unsigned int numLoops=0, bool forceDefaultQuantum=false, bool preferWaitingforSynchronisedStart=false) Loop (double startMs, double lengthMs, bool jumpToStartMs, unsigned char pointID, bool synchronisedStart, unsigned int numLoops=0, bool forceDefaultQuantum=false, bool preferWaitingforSynchronisedStart=false) JogTouchEnd (float decelerate, bool synchronisedStart)Ĭall this when the jog touch ends. "Virtual jog wheel" or "virtual turntable" handling. JogTouchBegin (int ticksPerTurn, JogMode mode, unsigned int scratchSlipMs=0) JogTick (int value, bool bendStretch, float bendMaxPercent, unsigned int bendHoldMs, bool parameterModeIfNoJogTouchBegin)Ī jog wheel should send some "ticks" with the movement. GetMsDifference (double phase, double quantum) More.ĬlosestBeatMs (double ms, unsigned char *beatIndex=0)ĮndScratch (bool returnToStateBeforeScratch) More.ĬachePosition (double ms, unsigned char pointID=255)Ĭaches a position for zero latency seeking. #include "SuperpoweredAdvancedAudioPlayer.h"ĪdvancedAudioPlayer (unsigned int samplerate, unsigned char cachedPointCount, unsigned int internalBufferSizeSeconds=2, unsigned int negativeSeconds=0)Ĭreates a player instance with the current sample rate value. High performance advanced audio player with:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |