aboutsummaryrefslogtreecommitdiff
path: root/desiredata/src
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-05-25 05:16:21 +0000
committerN.N. <matju@users.sourceforge.net>2009-05-25 05:16:21 +0000
commit2a8a3cef7b24c7ce23a3bfe8264f91d0207312f5 (patch)
tree69c5cea41f8f1ab5ec1daa2bfec554dc582d1708 /desiredata/src
parentac45b285a7aedc97f70bbc3eae6494f2ba1ede11 (diff)
some more static
svn path=/trunk/; revision=11490
Diffstat (limited to 'desiredata/src')
-rw-r--r--desiredata/src/s_audio_alsamm.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/desiredata/src/s_audio_alsamm.c b/desiredata/src/s_audio_alsamm.c
index 06205214..3a57691d 100644
--- a/desiredata/src/s_audio_alsamm.c
+++ b/desiredata/src/s_audio_alsamm.c
@@ -140,13 +140,12 @@ int alsamm_open_audio(int rate) {
/* Be aware in ALSA periodsize can be in bytes, where buffersize is in frames,
but sometimes buffersize is in bytes and periods in frames, crazy alsa...
...we use periodsize and buffersize in frames */
- int i;
snd_pcm_hw_params_alloca(&hw_params);
snd_pcm_sw_params_alloca(&sw_params);
/* see add_devname */
/* first have a look which cards we can get and set up device infos for them */
/* init some structures */
- for(i=0;i < ALSA_MAXDEV;i++) {
+ for(int i=0; i<ALSA_MAXDEV;i++) {
alsa_indev[i].a_synced=alsa_outdev[i].a_synced=0;
alsa_indev[i].a_channels=alsa_outdev[i].a_channels=-1; /* query defaults */
}
@@ -673,13 +672,3 @@ int alsamm_send_dacs() {
}
return SENDDACS_YES;
}
-
-/* extra debug info */
-void alsamm_showstat(snd_pcm_t *handle) {
- int err;
- snd_pcm_status_t *status;
- snd_pcm_status_alloca(&status);
- err = snd_pcm_status(handle, status);
- if (err<0) {check_error(err,"Get Stream status error"); return;}
- snd_pcm_status_dump(status, alsa_stdout);
-}