Home
last modified time | relevance | path

Searched refs:playpos (Results 1 – 25 of 51) sorted by relevance

123

/dports/games/retroarch/RetroArch-1.9.7/audio/drivers/
H A Dctr_csnd_audio.c36 uint32_t playpos; member
56 ctr->playpos = (ctr->playpos + samples_played) & CTR_CSND_AUDIO_COUNT_MASK; in ctr_csnd_audio_update_playpos()
141 ctr->playpos = 0; in ctr_csnd_audio_init()
180 if((((ctr->playpos - ctr->pos) & CTR_CSND_AUDIO_COUNT_MASK) < (CTR_CSND_AUDIO_COUNT >> 2)) || in ctr_csnd_audio_write()
181 (((ctr->pos - ctr->playpos ) & CTR_CSND_AUDIO_COUNT_MASK) < (CTR_CSND_AUDIO_COUNT >> 4)) || in ctr_csnd_audio_write()
182 (((ctr->playpos - ctr->pos) & CTR_CSND_AUDIO_COUNT_MASK) < (size >> 2))) in ctr_csnd_audio_write()
185 ctr->pos = (ctr->playpos + (CTR_CSND_AUDIO_COUNT >> 1)) & CTR_CSND_AUDIO_COUNT_MASK; in ctr_csnd_audio_write()
192 … }while (((ctr->playpos - ctr->pos) & CTR_CSND_AUDIO_COUNT_MASK) < (CTR_CSND_AUDIO_COUNT >> 1) in ctr_csnd_audio_write()
193 … || (((ctr->pos - ctr->playpos) & CTR_CSND_AUDIO_COUNT_MASK) < (CTR_CSND_AUDIO_COUNT >> 4))); in ctr_csnd_audio_write()
283 return (ctr->playpos - ctr->pos) & CTR_CSND_AUDIO_COUNT_MASK; in ctr_csnd_audio_write_avail()
/dports/games/pushover/pushover-0.0.5/src/
H A Drecorder.h32 recorder_c(void) : playpos(0), levelsetName("unknown"), levelName("unknown") {}; in recorder_c()
45 int getEvent(void) { return playpos < record.size() ? record[playpos++] : 0; } in getEvent()
46 bool endOfRecord(void) const { return playpos >= record.size(); } in endOfRecord()
57 unsigned int playpos; variable
H A Drecorder.cpp42 playpos = 0; in load()
93 record.resize(playpos); in truncate()
97 playpos = 0; in reset()
98 record.resize(playpos); in reset()
/dports/audio/zplugins-lv2/ZPlugins-0.2.4/ext/Soundpipe/modules/
H A Drpt.c23 p->playpos = 0; in sp_rpt_init()
48 p->playpos = 0; in sp_rpt_compute()
60 if(p->playpos == 0){ in sp_rpt_compute()
63 *out = buf[p->playpos]; in sp_rpt_compute()
64 p->playpos = (p->playpos + 1) % p->size; in sp_rpt_compute()
/dports/emulators/mess/mame-mame0226/src/osd/modules/sound/
H A Dpa_sound.cpp58 std::atomic<int> playpos, writepos; member
61 playpos = writepos = 0; in audio_buffer()
68 int diff = writepos - playpos; in count()
92 playpos.store((playpos + n) % size); in increment_playpos()
98 if (playpos + n > size) { in read()
99 std::memcpy(dst, buf + playpos, sizeof(T) * (size - playpos)); in read()
100 std::memcpy(dst + (size - playpos), buf, sizeof(T) * (n - (size - playpos))); in read()
102 std::memcpy(dst, buf + playpos, sizeof(T) * n); in read()
/dports/emulators/mame/mame-mame0226/src/osd/modules/sound/
H A Dpa_sound.cpp58 std::atomic<int> playpos, writepos; member
61 playpos = writepos = 0; in audio_buffer()
68 int diff = writepos - playpos; in count()
92 playpos.store((playpos + n) % size); in increment_playpos()
98 if (playpos + n > size) { in read()
99 std::memcpy(dst, buf + playpos, sizeof(T) * (size - playpos)); in read()
100 std::memcpy(dst + (size - playpos), buf, sizeof(T) * (n - (size - playpos))); in read()
102 std::memcpy(dst, buf + playpos, sizeof(T) * n); in read()
/dports/games/libretro-mame2000/mame2000-libretro-e364a15/src/sound/
H A Dwave.c274 while( w->playpos < w->samples ) in wave_write()
277 w->playpos++; in wave_write()
420 tapepos = w->playpos; in wave_display()
501 w->playpos = w->samples - 1; in wave_sound_update()
516 w->playpos = w->samples - 1; in wave_sound_update()
841 w->samples = w->playpos; in wave_close()
863 w->playpos = 0; in wave_close()
896 w->playpos = w->offset; in wave_seek()
935 w->playpos = pos; in wave_input()
979 while( w->playpos < pos ) in wave_output()
[all …]
/dports/games/openttd/openttd-12.1/src/music/
H A Dmidifile.cpp623 chandata.playpos = chandata.startpos; in RestartSong()
627 chandata.playpos = 0; in RestartSong()
644 b1 = this->songdata[chandata.playpos++]; in PlayChannelFrame()
648 b1 = this->songdata[chandata.playpos++]; in PlayChannelFrame()
649 chandata.returnpos = chandata.playpos; in PlayChannelFrame()
650 chandata.playpos = this->segments[b1]; in PlayChannelFrame()
660 chandata.playpos = chandata.returnpos; in PlayChannelFrame()
680 b1 = this->songdata[chandata.playpos++]; in PlayChannelFrame()
686 b2 = this->songdata[chandata.playpos++]; in PlayChannelFrame()
705 b2 = this->songdata[chandata.playpos++]; in PlayChannelFrame()
[all …]
/dports/audio/sndio/sndio-1.8.1/examples/
H A Dplay.c18 unsigned long long playpos = 0, writepos = 0; variable
28 playpos += bytes; in cb()
145 playpos, writepos, writepos - playpos); in main()
/dports/audio/cutmp3/cutmp3-3.0.1/
H A Dcutmp3.h44 unsigned int volume(long playpos);
96 void playsel(long int playpos);
97 void playfirst(long int playpos);
H A Dmain.c734 pos=playpos-1; in volume()
1720 void playsel(long playpos) in playsel() argument
1741 pos=playpos; in playsel()
1743 playsize=pos-playpos; in playsel()
1748 if (playpos < audiobegin) in playsel()
1751 playpos=audiobegin; in playsel()
1753 if (playpos > filesize) playpos=filesize; in playsel()
1765 pos=playpos; in playsel()
1809 void playtoend(long playpos) in playtoend() argument
1828 if (playpos >= inpoint) in playtoend()
[all …]
/dports/audio/mixxx/mixxx-2.3.0/src/widget/
H A Dwspinny.cpp442 double WSpinny::calculateAngle(double playpos) { in calculateAngle() argument
445 if (util_isnan(playpos) || util_isnan(trackFrames) || util_isnan(trackSampleRate) || in calculateAngle()
451 double t = playpos * trackFrames / trackSampleRate; in calculateAngle()
490 int WSpinny::calculateFullRotations(double playpos) { in calculateFullRotations() argument
491 if (util_isnan(playpos)) { in calculateFullRotations()
495 double t = playpos * (m_pTrackSamples->get() / 2 / // Stereo audio! in calculateFullRotations()
522 double playpos = t * trackSampleRate / trackFrames; in calculatePositionFromAngle() local
523 if (util_isnan(playpos)) { in calculatePositionFromAngle()
526 return playpos; in calculatePositionFromAngle()
H A Dwspinny.h77 double calculateAngle(double playpos);
78 int calculateFullRotations(double playpos);
/dports/audio/zam-plugins-lv2/zam-plugins-3.14/plugins/ZamGrains/
H A DZamGrainsPlugin.cpp143 playpos = 0.f; in loadProgram()
180 return playpos; in getParameterValue()
216 playpos = value; in setParameterValue()
243 playpos = 0; in activate()
332 playpos = (float)posz * 1000. / (srate * delaytime); in run()
H A DZamGrainsUI.cpp135 playpos = value; in parameterChanged()
155 playpos = 0.f; in programLoaded()
220 glVertex2i(offsetx + width * playpos, offsety + 5); in onDisplay()
222 glVertex2i(offsetx + ((int)(width * playpos * playspeed) % width), offsety + height / 3); in onDisplay()
/dports/games/crrcsim/crrcsim-0.9.13/src/
H A Dcrrc_soundserver.h75 Uint32 playpos; ///< Current playback position. member
178 virtual Uint8* getMixableData(Uint32 playpos, Uint32 *len);
227 virtual Uint8* getMixableData(Uint32 playpos, Uint32 *len);
H A Dcrrc_sound.h60 Uint8* getMixableData(Uint32 playpos, Uint32 *len);
167 Uint8* getMixableData(Uint32 playpos, Uint32 *len);
H A Dcrrc_sound.cpp82 Uint8* T_AirplaneSound::getMixableData(Uint32 playpos, Uint32 *len) in getMixableData() argument
85 Uint8* ret = T_PitchVariableLoop::getMixableData(playpos, len); in getMixableData()
431 Uint8* T_VariometerSound::getMixableData(Uint32 playpos, Uint32 *len) in getMixableData() argument
/dports/audio/ocp/ocp-0.2.90/devp/
H A Ddevpsdl.c67 volatile static uint32_t playpos; /* how many samples have we done totally */ variable
101 playpos += i<<(2/*stereo+bit16*/); in theRenderProc()
181 retval=playpos-kernlen; in sdlGetTimer()
235 playpos=0; in sdlPlay()
H A Ddevpsdl2.c67 volatile static uint32_t playpos; /* how many samples have we done totally */ variable
101 playpos += i<<(2/*stereo+bit16*/); in theRenderProc()
181 retval=playpos-kernlen; in sdl2GetTimer()
235 playpos=0; in sdl2Play()
H A Ddevpcoreaudio.c58 volatile static uint64_t playpos; /* how many samples have we done totally */ variable
177 playpos += i<<(2/*stereo+bit16*/); in theRenderProc()
184 fprintf (stderr, " playpos=%d\n", (int)playpos); in theRenderProc()
282 retval=playpos-(kernlen + cachelen); in CoreAudioGetTimer()
331 playpos=0; in CoreAudioPlay()
H A Ddevposs.c78 static volatile uint32_t playpos; /* how many samples have we done totally */ variable
200 playpos+=result; in flush()
340 long tmp=playpos; in gettimer()
442 playpos=0; in ossPlay()
/dports/multimedia/libxine/xine-lib-1.2.11/src/audio_out/
H A Daudio_sndio_out.c53 long long realpos, playpos; member
159 this->playpos = 0; in ao_sndio_open()
206 this->playpos += num_frames; in ao_sndio_write()
217 bufused = this->playpos; in ao_sndio_delay()
219 bufused = this->playpos - this->realpos; in ao_sndio_delay()
/dports/audio/komposter/komposter-f75eeb7/
H A Daudio.c30 unsigned long playpos; variable
129 playpos=0; in audio_initialize()
355 playpos=0; in audio_process()
360 ticks=playpos / (OUTPUTFREQ/(bpm*256/60)); // calc tick from sample index in audio_process()
424 playpos++; in audio_process()
425 if ((ticks>>10) >= pattlen[cpatt]) { ticks=0; playpos=0; } in audio_process()
/dports/audio/soundtracker/soundtracker-1.0.2.1/app/drivers/
H A Ddsound-output.c57 signed long playpos, lastpos; member
110 d->playpos += delta; in dsound_poll_ready_playing()
317 d->playpos = -d->buflen; in dsound_play()
390 return (double)d->playpos / (double)d->wbformat->nAvgBytesPerSec; in dsound_get_play_time()

123