Dirty Hack #9
This commit is contained in:
+4
-3
@@ -1135,7 +1135,7 @@ static void start(int i_sample_rate, int i_sample_format) {
|
||||
}
|
||||
}
|
||||
|
||||
int delay_and_status(snd_pcm_state_t *state, snd_pcm_sframes_t *delay, enum yndk_type *using_update_timestamps) {
|
||||
int simple_delay_and_status(snd_pcm_state_t *state, snd_pcm_sframes_t *delay, enum yndk_type *using_update_timestamps) {
|
||||
int ret = 0;
|
||||
if (using_update_timestamps)
|
||||
*using_update_timestamps = YNDK_NO;
|
||||
@@ -1157,7 +1157,7 @@ int delay_and_status(snd_pcm_state_t *state, snd_pcm_sframes_t *delay, enum yndk
|
||||
}
|
||||
|
||||
|
||||
int real_delay_and_status(snd_pcm_state_t *state, snd_pcm_sframes_t *delay, enum yndk_type *using_update_timestamps) {
|
||||
int delay_and_status(snd_pcm_state_t *state, snd_pcm_sframes_t *delay, enum yndk_type *using_update_timestamps) {
|
||||
snd_pcm_status_t *alsa_snd_pcm_status;
|
||||
snd_pcm_status_alloca(&alsa_snd_pcm_status);
|
||||
|
||||
@@ -1178,7 +1178,8 @@ int real_delay_and_status(snd_pcm_state_t *state, snd_pcm_sframes_t *delay, enum
|
||||
#endif
|
||||
|
||||
|
||||
*state = snd_pcm_status_get_state(alsa_snd_pcm_status);
|
||||
*state = snd_pcm_state(alsa_handle);
|
||||
//*state = snd_pcm_status_get_state(alsa_snd_pcm_status);
|
||||
|
||||
if ((*state == SND_PCM_STATE_RUNNING) || (*state == SND_PCM_STATE_DRAINING)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user