MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / take

Method take

source/frontend/StarVoice.cpp:84–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 inline int16_t take() {
85 int16_t sample = 0;
86 if (!samples.empty()) {
87 sample = samples.front();
88 samples.pop();
89 }
90 return sample;
91 }
92
93 size_t resample(int16_t* in, size_t inSamples, std::vector<int16_t>& out, bool mono) {
94 SDL_AudioStream* stream = mono ? sdlAudioStreamMono : sdlAudioStreamStereo;

Callers 8

pullContainerResultsMethod · 0.45
InventoryPaneMethod · 0.45
updateMethod · 0.45
updateMethod · 0.45
updateCursorMethod · 0.45
TitleScreenMethod · 0.45
mixMethod · 0.45
handleInputEventMethod · 0.45

Calls 2

emptyMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected