ac97.c (db7069133e2aab279efa999b7de3d241bb219acf) | ac97.c (85bc58520c0e43660cbbe51b9eb5022a0baafe9f) |
---|---|
1/* 2 * Copyright (C) 2006 InnoTek Systemberatung GmbH 3 * 4 * This file is part of VirtualBox Open Source Edition (OSE), as 5 * available from http://www.virtualbox.org. This file is free software; 6 * you can redistribute it and/or modify it under the terms of the GNU 7 * General Public License as published by the Free Software Foundation, 8 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE --- 351 unchanged lines hidden (view full) --- 360} 361 362static void open_voice (AC97LinkState *s, int index, int freq) 363{ 364 struct audsettings as; 365 366 as.freq = freq; 367 as.nchannels = 2; | 1/* 2 * Copyright (C) 2006 InnoTek Systemberatung GmbH 3 * 4 * This file is part of VirtualBox Open Source Edition (OSE), as 5 * available from http://www.virtualbox.org. This file is free software; 6 * you can redistribute it and/or modify it under the terms of the GNU 7 * General Public License as published by the Free Software Foundation, 8 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE --- 351 unchanged lines hidden (view full) --- 360} 361 362static void open_voice (AC97LinkState *s, int index, int freq) 363{ 364 struct audsettings as; 365 366 as.freq = freq; 367 as.nchannels = 2; |
368 as.fmt = AUD_FMT_S16; | 368 as.fmt = AUDIO_FORMAT_S16; |
369 as.endianness = 0; 370 371 if (freq > 0) { 372 s->invalid_freq[index] = 0; 373 switch (index) { 374 case PI_INDEX: 375 s->voice_pi = AUD_open_in ( 376 &s->card, --- 1074 unchanged lines hidden --- | 369 as.endianness = 0; 370 371 if (freq > 0) { 372 s->invalid_freq[index] = 0; 373 switch (index) { 374 case PI_INDEX: 375 s->voice_pi = AUD_open_in ( 376 &s->card, --- 1074 unchanged lines hidden --- |