none
Dual Wavedriver (WINCE6 R3) RRS feed

  • Question

  • My platform has two audio drivers. The first was already available in the platform, the second was ported to support the I2S interface.

    - Do I need to give them different prefixes in the registry? (now they both are named "WAV")

    - how does the OS distinguish both? 

     

    regards, Maarten

    Friday, January 27, 2012 8:06 AM

Answers

  • As any other stream interface driver the OS distinguish them by the index: you'll get WAV1: and WAV2: Which driver will get which index depends on the order the two drivers are loaded but you can explicitely define the index using "Index"=dword: in the registry.

    The OS will default on WAV1: for playing the system sounds, etc.

    When you use the WAVEAPI function the audio devices numbers are zero based so device 0 <-> WAV1: and device 1 <-> WAV2:


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    • Marked as answer by MenM Saturday, January 28, 2012 9:01 AM
    Friday, January 27, 2012 3:47 PM
  • The audio driver must have WAV, MIX or provide the DEVCLASS_AUDIO_GUID ({E92BC203-8354-4043-A06F-2A170BF6F227}) in IClass so it can be managed by audio manager. ie. can be handled via standard wave API.

    • Marked as answer by MenM Saturday, January 28, 2012 9:01 AM
    • Unmarked as answer by MenM Saturday, January 28, 2012 9:01 AM
    • Marked as answer by MenM Saturday, January 28, 2012 9:02 AM
    Saturday, January 28, 2012 2:03 AM

All replies

  • As any other stream interface driver the OS distinguish them by the index: you'll get WAV1: and WAV2: Which driver will get which index depends on the order the two drivers are loaded but you can explicitely define the index using "Index"=dword: in the registry.

    The OS will default on WAV1: for playing the system sounds, etc.

    When you use the WAVEAPI function the audio devices numbers are zero based so device 0 <-> WAV1: and device 1 <-> WAV2:


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com
    • Marked as answer by MenM Saturday, January 28, 2012 9:01 AM
    Friday, January 27, 2012 3:47 PM
  • The audio driver must have WAV, MIX or provide the DEVCLASS_AUDIO_GUID ({E92BC203-8354-4043-A06F-2A170BF6F227}) in IClass so it can be managed by audio manager. ie. can be handled via standard wave API.

    • Marked as answer by MenM Saturday, January 28, 2012 9:01 AM
    • Unmarked as answer by MenM Saturday, January 28, 2012 9:01 AM
    • Marked as answer by MenM Saturday, January 28, 2012 9:02 AM
    Saturday, January 28, 2012 2:03 AM