Logo Search packages:      
Sourcecode: vdr-plugin-dvd version File versions  Download package

void cDvdPlayer::SetAudioTrack ( eTrackType  Type,
const tTrackId *  TrackId 
)

!! soundglitches on titlejump

Definition at line 2581 of file player-dvd.c.

{
    if(!DVDActiveAndRunning())
        return;

    LOCK_THREAD;

    int id = IS_AUDIO_TRACK(Type) ? (Type - ttAudio) : (Type - ttDolby);

    DEBUG_AUDIO_ID("cDvdPlayer::SetAudioTrack: dd=%d, index=%d, id=0x%2X\n", IS_DOLBY_TRACK(Type), Type, id);

    int i = SearchAudioStream(id);

    if(i < 0 && navAudioTracksSeen.Count() > 0) {
        id = ((IntegerListObject *)navAudioTracksSeen.Get(0))->getValue();
        DEBUG_AUDIO_ID("cDvdPlayer::SetAudioTrack: .. not found !\n");
    } else {
        currentNavAudioTrack = -1;
        DEBUG_AUDIO_ID("cDvdPlayer::SetAudioTrack: .. found !\n");
    }

    SetCurrentNavAudioTrackUsrLocked(true);

    //!!! soundglitches on titlejump
    if (currentNavAudioTrack != id) {
        currentNavAudioTrack = id;
        currentNavAudioTrackLangCode = GetNavAudioTrackLangCode(currentNavAudioTrack);

        if (currentNavAudioTrackLangCode != 0xFFFF) {
            dvdnav_audio_language_select(nav, (char *)&currentNavAudioTrackLangCode);
        }
//        Empty();
        DEBUG_AUDIO_ID("cDvdPlayer::SetAudioTrack: SWITCHED !\n");
    }
}

Generated by  Doxygen 1.6.0   Back to index